Skip to content

Commit 9e6d360

Browse files
authored
Fix picture raster cache throttling (flutter#13710)
Previously, we're also counting the pictures that are already raster cached. This fixes flutter/flutter#44252 and helps solving the GPU thread issue of flutter/flutter#43083 flutter/flutter#45050 is a performance test in the framework repo to reveal this bug.
1 parent 7a77e36 commit 9e6d360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/raster_cache.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ bool RasterCache::Prepare(GrContext* context,
219219
if (!entry.image.is_valid()) {
220220
entry.image = RasterizePicture(picture, context, transformation_matrix,
221221
dst_color_space, checkerboard_images_);
222+
picture_cached_this_frame_++;
222223
}
223-
picture_cached_this_frame_++;
224224
return true;
225225
}
226226

0 commit comments

Comments
 (0)