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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user