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

Unified Diff: ui/gfx/mojo/buffer_types.mojom

Issue 2970353002: Add GpuMemoryBuffer support for DXGI handles.
Patch Set: add image texture target Created 3 years, 5 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/mojo/buffer_types.mojom
diff --git a/ui/gfx/mojo/buffer_types.mojom b/ui/gfx/mojo/buffer_types.mojom
index 057831195cb1a521bbf6ddcbf35e4a2eb6fcb131..3ccaa9dfe06c5f60ad19b260dafcb017b2db939e 100644
--- a/ui/gfx/mojo/buffer_types.mojom
+++ b/ui/gfx/mojo/buffer_types.mojom
@@ -44,7 +44,8 @@ enum GpuMemoryBufferType {
SHARED_MEMORY_BUFFER,
IO_SURFACE_BUFFER,
NATIVE_PIXMAP,
- LAST = NATIVE_PIXMAP
+ DXGI_HANDLE,
dcheng 2017/07/12 08:46:19 Do you mind adding a TODO to make these Windows on
+ LAST = DXGI_HANDLE
};
// gfx::GpuMemoryBufferId
@@ -77,4 +78,6 @@ struct GpuMemoryBufferHandle {
uint32 stride;
NativePixmapHandle? native_pixmap_handle;
handle? mach_port;
+ handle? win32_handle;
+ uint32 array_level;
};

Powered by Google App Engine
This is Rietveld 408576698