Index: cc/output/output_surface.h |
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h |
index a3f5d0ceb85348de2935a2014587df0d68721cdf..e624a45d9a8902cbdfbac91bb4ddbf900851606b 100644 |
--- a/cc/output/output_surface.h |
+++ b/cc/output/output_surface.h |
@@ -19,6 +19,7 @@ |
#include "cc/output/vulkan_context_provider.h" |
#include "cc/resources/returned_resource.h" |
#include "gpu/command_buffer/common/texture_in_use_response.h" |
+#include "ui/gfx/color_space.h" |
namespace base { class SingleThreadTaskRunner; } |
@@ -130,6 +131,7 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider { |
bool alpha); |
gfx::Size SurfaceSize() const { return surface_size_; } |
float device_scale_factor() const { return device_scale_factor_; } |
+ const gfx::ColorSpace& color_space() const { return color_space_; } |
// If supported, this causes a ReclaimResources for all resources that are |
// currently in use. |
@@ -197,6 +199,7 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider { |
gfx::Size surface_size_; |
float device_scale_factor_ = -1; |
bool has_alpha_ = true; |
+ gfx::ColorSpace color_space_; |
base::ThreadChecker client_thread_checker_; |
void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |