From dba89c9783f4045e93d0f42545b57956e797eb07 Mon Sep 17 00:00:00 2001 From: liyuqian Date: Tue, 19 Feb 2019 14:46:42 -0800 Subject: [PATCH] Reland "Lower the threshold to raster cache pictures (#7687)" (flutter/engine#7862) This reverts commit f2d2383aee62a8fedb784b09a395751105956e03. https://github.com/flutter/engine/pull/7759 has landed without any unexpected regressions. Hence we'll reland this as planned. --- 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 fe42639fe7..1927321a03 100644 --- a/engine/src/flutter/flow/raster_cache.cc +++ b/engine/src/flutter/flow/raster_cache.cc @@ -87,7 +87,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() > 10; + return picture->approximateOpCount() > 5; } static RasterCacheResult Rasterize(