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

Unified Diff: components/display_compositor/buffer_queue.h

Issue 2119723002: Color: Add SetColorSpace member to gfx::GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumb_2
Patch Set: Add OWNERs 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: components/display_compositor/buffer_queue.h
diff --git a/components/display_compositor/buffer_queue.h b/components/display_compositor/buffer_queue.h
index e0a24848e214929f9c7d0ac734b42e1ee58dbcfd..924a0ecd70538c6251da551981dea2384fa70543 100644
--- a/components/display_compositor/buffer_queue.h
+++ b/components/display_compositor/buffer_queue.h
@@ -15,6 +15,7 @@
#include "base/memory/ref_counted.h"
#include "components/display_compositor/display_compositor_export.h"
#include "gpu/ipc/common/surface_handle.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -53,7 +54,9 @@ class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
void BindFramebuffer();
void SwapBuffers(const gfx::Rect& damage);
void PageFlipComplete();
- void Reshape(const gfx::Size& size, float scale_factor);
+ void Reshape(const gfx::Size& size,
+ float scale_factor,
+ const gfx::ColorSpace& color_space);
void RecreateBuffers();
@@ -102,6 +105,7 @@ class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
gpu::gles2::GLES2Interface* const gl_;
gfx::Size size_;
+ gfx::ColorSpace color_space_;
uint32_t fbo_;
size_t allocated_count_;
uint32_t texture_target_;
« no previous file with comments | « no previous file | components/display_compositor/buffer_queue.cc » ('j') | components/display_compositor/buffer_queue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698