Index: ui/gfx/gpu_memory_buffer.h |
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h |
index 263a0ef41da40ddd140556c2ccc0d73d51a30afe..f35279f474d07d5b175504c371a807cb4005bfc1 100644 |
--- a/ui/gfx/gpu_memory_buffer.h |
+++ b/ui/gfx/gpu_memory_buffer.h |
@@ -45,6 +45,9 @@ class GFX_EXPORT GpuMemoryBuffer { |
public: |
virtual ~GpuMemoryBuffer() {} |
+ // Returns the number of planes based on the format of the buffer. |
+ static size_t NumberOfPlanes(BufferFormat format); |
reveman
2015/08/10 23:08:28
How about we add a gpu_memory_buffer_util.h file f
Andre
2015/08/11 03:50:03
Done.
|
+ |
// Maps each plane of the buffer into the client's address space so it can be |
// written to by the CPU. A pointer to plane K is stored at index K-1 of the |
// |data| array. This call may block, for instance if the GPU needs to finish |