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

Unified Diff: ui/gfx/gpu_memory_buffer.cc

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win build Created 6 years, 6 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 | « ui/gfx/gpu_memory_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gpu_memory_buffer.cc
diff --git a/ui/gfx/gpu_memory_buffer.cc b/ui/gfx/gpu_memory_buffer.cc
index c1de26c374bebc659828193f1ba8e9c8f84de4e7..057e8c7575a76c6a443baf43ea69212cb5162599 100644
--- a/ui/gfx/gpu_memory_buffer.cc
+++ b/ui/gfx/gpu_memory_buffer.cc
@@ -6,6 +6,20 @@
namespace gfx {
+GpuMemoryBufferHandle::GpuMemoryBufferHandle()
+ : type(EMPTY_BUFFER),
+ handle(base::SharedMemory::NULLHandle())
+#if defined(OS_MACOSX)
+ ,
+ io_surface_id(0u)
+#endif
+#if defined(OS_ANDROID)
+ ,
+ native_buffer(NULL)
+#endif
+{
+}
+
GpuMemoryBuffer::GpuMemoryBuffer() {}
GpuMemoryBuffer::~GpuMemoryBuffer() {}
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698