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

Unified Diff: cc/surfaces/display.h

Issue 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of s/ColorProfile/ColorSpace/ Created 4 years, 6 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/software_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index c9778ddb0590ab6e4aa1673dc56635ff48e0b0b1..5d477ffd85dfc0d6795ce997c6cd6568bc42fe20 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -20,6 +20,7 @@
#include "cc/surfaces/surfaces_export.h"
#include "gpu/command_buffer/common/texture_in_use_response.h"
#include "ui/events/latency_info.h"
+#include "ui/gfx/color_space.h"
namespace gpu {
class GpuMemoryBufferManager;
@@ -72,6 +73,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
// what scale this was rendered at.
void SetSurfaceId(SurfaceId id, float device_scale_factor);
void Resize(const gfx::Size& new_size);
+ void SetColorSpace(const gfx::ColorSpace& color_space);
void SetExternalClip(const gfx::Rect& clip);
void SetOutputIsSecure(bool secure);
@@ -125,6 +127,7 @@ class CC_SURFACES_EXPORT Display : public DisplaySchedulerClient,
uint32_t compositor_surface_namespace_;
gfx::Size current_surface_size_;
float device_scale_factor_ = 1.f;
+ gfx::ColorSpace device_color_space_;
bool swapped_since_resize_ = false;
gfx::Rect external_clip_;
gfx::Size enlarge_texture_amount_;
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698