Reland "Lower the threshold to raster cache pictures (#7687)" (flutter/engine#7862)

This reverts commit f2d2383aee.

https://github.com/flutter/engine/pull/7759 has landed without any
unexpected regressions. Hence we'll reland this as planned.
This commit is contained in:
liyuqian
2019-02-19 14:46:42 -08:00
committed by GitHub
parent 589c8353af
commit dba89c9783

View File

@@ -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(