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

Unified Diff: cc/paint/discardable_image_map.h

Issue 2866173002: [WIP] cc: Use sRGB for rastering non-wide-color-gamut content
Patch Set: Created 3 years, 7 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/paint/discardable_image_map.cc » ('j') | cc/paint/discardable_image_map.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/paint/discardable_image_map.h
diff --git a/cc/paint/discardable_image_map.h b/cc/paint/discardable_image_map.h
index 881698fdac797f4b7f36ae3153f66697ac7170d5..9b7ed3e6b0c304f3af369ff4d8f692ec289d75aa 100644
--- a/cc/paint/discardable_image_map.h
+++ b/cc/paint/discardable_image_map.h
@@ -45,6 +45,7 @@ class CC_PAINT_EXPORT DiscardableImageMap {
~DiscardableImageMap();
bool empty() const { return all_images_.empty(); }
+ bool has_non_srgb_images() const { return has_non_srgb_images_; }
void GetDiscardableImagesInRect(const gfx::Rect& rect,
float contents_scale,
const gfx::ColorSpace& target_color_space,
@@ -61,6 +62,7 @@ class CC_PAINT_EXPORT DiscardableImageMap {
std::vector<std::pair<DrawImage, gfx::Rect>> all_images_;
base::flat_map<ImageId, gfx::Rect> image_id_to_rect_;
+ bool has_non_srgb_images_ = false;
RTree images_rtree_;
};
« no previous file with comments | « no previous file | cc/paint/discardable_image_map.cc » ('j') | cc/paint/discardable_image_map.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698