Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4000)

Unified Diff: cc/tiles/checker_image_tracker.h

Issue 2948033005: cc: Drop locked decodes from checker image tracker on cache switch. (Closed)
Patch Set: tested Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/checker_image_tracker.h
diff --git a/cc/tiles/checker_image_tracker.h b/cc/tiles/checker_image_tracker.h
index 335050c6b9df5ec861be30f2f6b58f852bbebf07..64560fb774804b39d9262c336cef479842bd1ef3 100644
--- a/cc/tiles/checker_image_tracker.h
+++ b/cc/tiles/checker_image_tracker.h
@@ -66,6 +66,10 @@ class CC_EXPORT CheckerImageTracker {
// raster.
void DisallowCheckeringForImage(const PaintImage& image);
+ bool has_locked_decodes_for_testing() const {
+ return !image_id_to_decode_.empty();
+ }
+
private:
enum class DecodePolicy {
// The image can be decoded asynchronously from raster. When set, the image
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698