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

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

Issue 211133005: [WIP] Not for review. Zero copy. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: content/common/gpu/client/gpu_channel_host.cc
diff --git a/content/common/gpu/client/gpu_channel_host.cc b/content/common/gpu/client/gpu_channel_host.cc
index dc1a3ce23a4af0c1583d8d9754829e4ab0970d7a..bb3a06dc7301c8ebdc03fd83da1524f33eb5b4f1 100644
--- a/content/common/gpu/client/gpu_channel_host.cc
+++ b/content/common/gpu/client/gpu_channel_host.cc
@@ -47,6 +47,9 @@ bool GpuChannelHost::IsValidGpuMemoryBuffer(
gfx::GpuMemoryBufferHandle handle) {
switch (handle.type) {
case gfx::SHARED_MEMORY_BUFFER:
+#if defined(OS_LINUX)
+ case gfx::INTEL_DRM_BUFFER:
+#endif
#if defined(OS_MACOSX)
case gfx::IO_SURFACE_BUFFER:
#endif
@@ -290,9 +293,12 @@ int32 GpuChannelHost::ReserveTransferBufferId() {
gfx::GpuMemoryBufferHandle GpuChannelHost::ShareGpuMemoryBufferToGpuProcess(
gfx::GpuMemoryBufferHandle source_handle) {
switch (source_handle.type) {
+#if defined(OS_LINUX)
+ case gfx::INTEL_DRM_BUFFER:
+#endif
case gfx::SHARED_MEMORY_BUFFER: {
gfx::GpuMemoryBufferHandle handle;
- handle.type = gfx::SHARED_MEMORY_BUFFER;
+ handle.type = source_handle.type;
handle.handle = ShareToGpuProcess(source_handle.handle);
return handle;
}

Powered by Google App Engine
This is Rietveld 408576698