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

Unified Diff: cc/trees/layer_tree.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.h
diff --git a/cc/trees/layer_tree.h b/cc/trees/layer_tree.h
index 77d105c84d16bc81af816756b5673297f4be8db1..b95a8e488f34ac81cbffd5b64e1412a8a1b227d0 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 {
@@ -116,6 +117,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_; }
@@ -241,6 +247,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;

Powered by Google App Engine
This is Rietveld 408576698