Skip to content

Commit

Permalink
[raster_cache] Increment access_count on Touch (flutter#29529)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Nov 4, 2021
1 parent 5cf7c39 commit 98d31de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/raster_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ void RasterCache::Touch(Layer* layer, const SkMatrix& ctm) {
auto it = layer_cache_.find(cache_key);
if (it != layer_cache_.end()) {
it->second.used_this_frame = true;
it->second.access_count++;
}
}

Expand All @@ -333,6 +334,7 @@ void RasterCache::Touch(SkPicture* picture,
auto it = picture_cache_.find(cache_key);
if (it != picture_cache_.end()) {
it->second.used_this_frame = true;
it->second.access_count++;
}
}

Expand All @@ -343,6 +345,7 @@ void RasterCache::Touch(DisplayList* display_list,
auto it = display_list_cache_.find(cache_key);
if (it != display_list_cache_.end()) {
it->second.used_this_frame = true;
it->second.access_count++;
}
}

Expand Down

0 comments on commit 98d31de

Please sign in to comment.