Index: ui/gfx/gpu_memory_buffer.h |
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h |
index a6163afd0737f8feddda14faf834d6d8621450cf..df5d7b54c2ffb14eaf2854ad45fd94e27ea42e6e 100644 |
--- a/ui/gfx/gpu_memory_buffer.h |
+++ b/ui/gfx/gpu_memory_buffer.h |
@@ -26,6 +26,8 @@ extern "C" typedef struct _ClientBuffer* ClientBuffer; |
namespace gfx { |
+class ColorSpace; |
+ |
enum GpuMemoryBufferType { |
EMPTY_BUFFER, |
SHARED_MEMORY_BUFFER, |
@@ -89,6 +91,10 @@ class GFX_EXPORT GpuMemoryBuffer { |
// plane K is stored at index K-1 of the |stride| array. |
virtual int stride(size_t plane) const = 0; |
+ // Set the color space in which this buffer should be interpreted when used |
+ // for scanout. Note that this will not impact texturing from the buffer. |
+ virtual void SetColorSpaceForScanout(const gfx::ColorSpace& color_space); |
+ |
// Returns a unique identifier associated with buffer. |
virtual GpuMemoryBufferId GetId() const = 0; |