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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 2970353002: Add GpuMemoryBuffer support for DXGI handles.
Patch Set: update build config Created 3 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
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory_win.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gpu_memory_buffer.h
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
index 6d23c84ddc76074fc8bd5f13af1460e6b3c70531..56477d5eeaa8186e1fa226f734ac3bdecc12c7b8 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -33,7 +33,8 @@ enum GpuMemoryBufferType {
SHARED_MEMORY_BUFFER,
IO_SURFACE_BUFFER,
NATIVE_PIXMAP,
- GPU_MEMORY_BUFFER_TYPE_LAST = NATIVE_PIXMAP
+ DXGI_HANDLE,
+ GPU_MEMORY_BUFFER_TYPE_LAST = DXGI_HANDLE
};
using GpuMemoryBufferId = GenericSharedMemoryId;
@@ -52,6 +53,8 @@ struct GFX_EXPORT GpuMemoryBufferHandle {
NativePixmapHandle native_pixmap_handle;
#elif defined(OS_MACOSX) && !defined(OS_IOS)
ScopedRefCountedIOSurfaceMachPort mach_port;
+#elif defined(OS_WIN)
+ uint32_t array_level = 0;
#endif
};
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory_win.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698