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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 1282313002: Add YUV_420_BIPLANAR to gfx::BufferFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmb-planes
Patch Set: Fixes for reveman Created 5 years, 4 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 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);
+
// 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

Powered by Google App Engine
This is Rietveld 408576698