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

Unified Diff: cc/output/output_surface.h

Issue 2088273003: Video Color Managament (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: log color space Created 4 years, 4 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/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 3e8e9ee5b2ebc36e0b3ba6e65522ae572df9323e..2b5708481f6721c1b2d6ca4354c62173a770cfd3 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 ui {
class LatencyInfo;
@@ -128,6 +129,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.
@@ -195,6 +197,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);
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698