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

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: Fix ozone build 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
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index c9778ddb0590ab6e4aa1673dc56635ff48e0b0b1..513b98ce793c070b927b391af69efa386b94d548 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_profile.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 SetColorProfile(const gfx::ColorProfile& color_profile);
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::ColorProfile device_color_profile_;
bool swapped_since_resize_ = false;
gfx::Rect external_clip_;
gfx::Size enlarge_texture_amount_;

Powered by Google App Engine
This is Rietveld 408576698