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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_linux.cc

Issue 288343004: working copy of "zero_copy" Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: 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 | « content/common/gpu/client/gpu_memory_buffer_impl_dma_buf.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
===================================================================
--- content/common/gpu/client/gpu_memory_buffer_impl_linux.cc (revision 277402)
+++ content/common/gpu/client/gpu_memory_buffer_impl_linux.cc (working copy)
@@ -4,6 +4,7 @@
#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
+#include "content/common/gpu/client/gpu_memory_buffer_impl_dma_buf.h"
#include "content/common/gpu/client/gpu_memory_buffer_impl_shm.h"
namespace content {
@@ -57,6 +58,14 @@
return buffer.PassAs<GpuMemoryBufferImpl>();
}
+ case gfx::DMA_BUFFER: {
+ scoped_ptr<GpuMemoryBufferImplDMABuf> buffer(
+ new GpuMemoryBufferImplDMABuf(size, internalformat));
+ if (!buffer->Initialize(handle))
+ return scoped_ptr<GpuMemoryBufferImpl>();
+
+ return buffer.PassAs<GpuMemoryBufferImpl>();
+ }
default:
return scoped_ptr<GpuMemoryBufferImpl>();
}
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl_dma_buf.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698