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

Unified Diff: content/common/child_process_host_impl.cc

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: mac build fix Created 6 years, 2 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 c4d209e08773d5b103922d3809f43556e85210dc..4bf59d2dccdc1132e6998df3375c88dd3fd235df 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -253,8 +253,6 @@ bool ChildProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
OnShutdownRequest)
IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateSharedMemory,
OnAllocateSharedMemory)
- IPC_MESSAGE_HANDLER(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
- OnAllocateGpuMemoryBuffer)
piman 2014/10/09 21:33:02 For consistency, if ChildProcessHostMsg_SyncAlloca
reveman 2014/10/10 02:20:16 I added a working implementation for this to lates
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -307,17 +305,4 @@ void ChildProcessHostImpl::OnShutdownRequest() {
Send(new ChildProcessMsg_Shutdown());
}
-void ChildProcessHostImpl::OnAllocateGpuMemoryBuffer(
- uint32 width,
- uint32 height,
- uint32 internalformat,
- uint32 usage,
- gfx::GpuMemoryBufferHandle* handle) {
- handle->type = gfx::SHARED_MEMORY_BUFFER;
- AllocateSharedMemory(
- width * height * GpuMemoryBufferImpl::BytesPerPixel(internalformat),
- peer_handle_,
- &handle->handle);
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698