mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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.
This commit is contained in:
parent
589c8353af
commit
dba89c9783
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user