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

Unified Diff: ui/gfx/gpu_memory_buffer.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: 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;

Powered by Google App Engine
This is Rietveld 408576698