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

Unified Diff: cc/trees/layer_tree.h

Issue 2336853002: cc: Plumb device color space through to rasterization (Closed)
Patch Set: Remove damage 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
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698