From f2d2383aee62a8fedb784b09a395751105956e03 Mon Sep 17 00:00:00 2001 From: liyuqian Date: Tue, 5 Feb 2019 16:02:44 -0800 Subject: [PATCH] Revert "Lower the threshold to raster cache pictures (#7687)" (flutter/engine#7701) This reverts commit bea23858792ff59a40b43b14a57fc0f3ba0ab739. --- engine/src/flutter/flow/raster_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/flow/raster_cache.cc b/engine/src/flutter/flow/raster_cache.cc index 94e518e601..0827a2de40 100644 --- a/engine/src/flutter/flow/raster_cache.cc +++ b/engine/src/flutter/flow/raster_cache.cc @@ -84,7 +84,7 @@ static bool IsPictureWorthRasterizing(SkPicture* picture, // TODO(abarth): We should find a better heuristic here that lets us avoid // wasting memory on trivial layers that are easy to re-rasterize every frame. - return picture->approximateOpCount() > 5; + return picture->approximateOpCount() > 10; } static RasterCacheResult Rasterize(