Skip to content

Commit 98d31de

Browse files
authored
[raster_cache] Increment access_count on Touch (flutter#29529)
1 parent 5cf7c39 commit 98d31de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flow/raster_cache.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ void RasterCache::Touch(Layer* layer, const SkMatrix& ctm) {
324324
auto it = layer_cache_.find(cache_key);
325325
if (it != layer_cache_.end()) {
326326
it->second.used_this_frame = true;
327+
it->second.access_count++;
327328
}
328329
}
329330

@@ -333,6 +334,7 @@ void RasterCache::Touch(SkPicture* picture,
333334
auto it = picture_cache_.find(cache_key);
334335
if (it != picture_cache_.end()) {
335336
it->second.used_this_frame = true;
337+
it->second.access_count++;
336338
}
337339
}
338340

@@ -343,6 +345,7 @@ void RasterCache::Touch(DisplayList* display_list,
343345
auto it = display_list_cache_.find(cache_key);
344346
if (it != display_list_cache_.end()) {
345347
it->second.used_this_frame = true;
348+
it->second.access_count++;
346349
}
347350
}
348351

0 commit comments

Comments
 (0)