未验证 提交 9e6d3601 编写于 作者: L liyuqian 提交者: GitHub

Fix picture raster cache throttling (#13710)

Previously, we're also counting the pictures that are already raster
cached.

This fixes https://github.com/flutter/flutter/issues/44252 and helps
solving the GPU thread issue of https://github.com/flutter/flutter/issues/43083

https://github.com/flutter/flutter/pull/45050 is a performance test in the framework repo to reveal this bug.
上级 7a77e362
......@@ -219,8 +219,8 @@ bool RasterCache::Prepare(GrContext* context,
if (!entry.image.is_valid()) {
entry.image = RasterizePicture(picture, context, transformation_matrix,
dst_color_space, checkerboard_images_);
picture_cached_this_frame_++;
}
picture_cached_this_frame_++;
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册