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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 2496783002: gpu: Reuse existing code for shared memory allocation. (Closed)
Patch Set: . Created 4 years, 1 month 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/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 78db5e2017cdbf8747b73a848798e8fdcbcf9c7c..9b1c2055b619f7c5b4f27519a7a673921f14362f 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -340,8 +340,7 @@ void RenderMessageFilter::AllocateSharedMemoryOnFileThread(
uint32_t buffer_size,
IPC::Message* reply_msg) {
base::SharedMemoryHandle handle;
- ChildProcessHostImpl::AllocateSharedMemory(buffer_size, PeerHandle(),
- &handle);
+ ChildProcessHostImpl::AllocateSharedMemory(buffer_size, &handle);
ChildProcessHostMsg_SyncAllocateSharedMemory::WriteReplyParams(reply_msg,
handle);
Send(reply_msg);

Powered by Google App Engine
This is Rietveld 408576698