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

Unified Diff: content/common/child_process_host_impl.cc

Issue 1151943003: Revert of Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/child_process_host_impl.cc
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index 3fa4dc89cf090a7724956b500b49ac2a2a802bab..69a63507f5866808d58339dc9aa9f17ccc654caa 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -323,9 +323,11 @@
// and handle failure in a controlled way when not. We just need to make
// sure |format| and |usage| are supported here.
if (GpuMemoryBufferImplSharedMemory::IsFormatSupported(format) &&
- GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) {
+ usage == gfx::GpuMemoryBuffer::MAP) {
*handle = GpuMemoryBufferImplSharedMemory::AllocateForChildProcess(
- g_next_gpu_memory_buffer_id.GetNext(), gfx::Size(width, height), format,
+ g_next_gpu_memory_buffer_id.GetNext(),
+ gfx::Size(width, height),
+ format,
peer_process_.Handle());
}
}

Powered by Google App Engine
This is Rietveld 408576698