Index: cc/trees/layer_tree.h |
diff --git a/cc/trees/layer_tree.h b/cc/trees/layer_tree.h |
index 7bf43eb47b89863e91fb22ba506e4de86678005b..8c2f999579e892d3ac275688b14fde197f3fbd06 100644 |
--- a/cc/trees/layer_tree.h |
+++ b/cc/trees/layer_tree.h |
@@ -19,6 +19,7 @@ |
#include "cc/trees/mutator_host_client.h" |
#include "cc/trees/property_tree.h" |
#include "third_party/skia/include/core/SkColor.h" |
+#include "ui/gfx/color_space.h" |
#include "ui/gfx/geometry/size.h" |
namespace base { |
@@ -118,6 +119,11 @@ class CC_EXPORT LayerTree : public MutatorHostClient { |
void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); |
+ void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); |
+ const gfx::ColorSpace& device_color_space() const { |
+ return inputs_.device_color_space; |
+ } |
+ |
// Used externally by blink for setting the PropertyTrees when |
// |settings_.use_layer_lists| is true. This is a SPV2 setting. |
PropertyTrees* property_trees() { return &property_trees_; } |
@@ -245,6 +251,7 @@ class CC_EXPORT LayerTree : public MutatorHostClient { |
float page_scale_factor; |
float min_page_scale_factor; |
float max_page_scale_factor; |
+ gfx::ColorSpace device_color_space; |
SkColor background_color; |
bool has_transparent_background; |