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

Unified Diff: cc/tiles/checker_image_tracker.h

Issue 2927573003: cc: Disallow img.decode images from being checker imaged. (Closed)
Patch Set: 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/checker_image_tracker.cc » ('j') | cc/tiles/checker_image_tracker.cc » ('J')
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 9f64d8d3f06232b30e79f7f2ce2ec6084a7720ee..dcfa73fadcb89be91eeddacf4524e9c383cca90b 100644
--- a/cc/tiles/checker_image_tracker.h
+++ b/cc/tiles/checker_image_tracker.h
@@ -58,6 +58,11 @@ class CC_EXPORT CheckerImageTracker {
// in re-checkering any images already decoded by the tracker.
void ClearTracker(bool can_clear_decode_policy_tracking);
+ // Informs the tracker to not checker the given image. This can be used to opt
+ // out of the checkering behavior for certain images, such as ones that were
+ // decoded using the img.decode api.
+ void DisallowCheckeringForImage(const PaintImage& image);
+
private:
enum class DecodePolicy {
// The image can be decoded asynchronously from raster. When set, the image
@@ -123,6 +128,8 @@ class CC_EXPORT CheckerImageTracker {
image_id_to_decode_;
base::WeakPtrFactory<CheckerImageTracker> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(CheckerImageTracker);
};
} // namespace cc
« no previous file with comments | « no previous file | cc/tiles/checker_image_tracker.cc » ('j') | cc/tiles/checker_image_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698