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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: Use suggested approach Created 4 years, 3 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
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 13d79129de690f6f4ac07a412ac0094cac6902cc..09516ffa258f0622c5580311d2a10ca015e9f71f 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -233,6 +233,11 @@ class CC_EXPORT LayerTreeImpl {
return painted_device_scale_factor_;
}
+ void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space);
+ const gfx::ColorSpace& device_color_space() const {
+ return device_color_space_;
+ }
+
SyncedElasticOverscroll* elastic_overscroll() {
return elastic_overscroll_.get();
}
@@ -487,6 +492,7 @@ class CC_EXPORT LayerTreeImpl {
float device_scale_factor_;
float painted_device_scale_factor_;
+ gfx::ColorSpace device_color_space_;
scoped_refptr<SyncedElasticOverscroll> elastic_overscroll_;

Powered by Google App Engine
This is Rietveld 408576698