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

Unified Diff: ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trybot issues fixed. Created 5 years, 9 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/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h
diff --git a/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h b/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h
index 006a4a5497ac72a7242ce4506e0ceee8de39bd3b..00d8a4e49032056215b4b836cc1adb792026a78d 100644
--- a/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h
+++ b/ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h
@@ -42,17 +42,19 @@ class OZONE_GPU_EXPORT GpuMemoryBufferFactoryOzoneNativeBuffer {
void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id);
// Creates a GLImage instance for GPU memory buffer identified by |id|.
- scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
- gfx::GpuMemoryBufferId id,
+ scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffers(
reveman 2015/03/12 19:37:23 Same here. You can save this for a follow up patch
emircan 2015/03/12 22:34:27 Reverted.
+ int num_buffers,
+ const std::vector<gfx::GpuMemoryBufferId>& ids,
const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
+ const std::vector<gfx::GpuMemoryBuffer::Format>& formats,
unsigned internalformat,
int client_id);
- static scoped_refptr<gfx::GLImage> CreateImageForPixmap(
- scoped_refptr<NativePixmap> pixmap,
+ static scoped_refptr<gfx::GLImage> CreateImageForPixmaps(
+ int num_buffers,
+ const std::vector<scoped_refptr<NativePixmap>>& pixmaps,
const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
+ const std::vector<gfx::GpuMemoryBuffer::Format>& formats,
unsigned internalformat);
private:

Powered by Google App Engine
This is Rietveld 408576698