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

Side by Side Diff: content/common/child_process_host_impl.cc

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits Created 6 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 unified diff | Download patch
« no previous file with comments | « content/common/child_process_host_impl.h ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/child_process_host_impl.h" 5 #include "content/common/child_process_host_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 gfx::Size(width, height), 337 gfx::Size(width, height),
338 format, 338 format,
339 peer_handle_, 339 peer_handle_,
340 base::Bind(&ChildProcessHostImpl::GpuMemoryBufferAllocated, 340 base::Bind(&ChildProcessHostImpl::GpuMemoryBufferAllocated,
341 base::Unretained(this), 341 base::Unretained(this),
342 reply)); 342 reply));
343 } 343 }
344 344
345 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( 345 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer(
346 gfx::GpuMemoryBufferType type, 346 gfx::GpuMemoryBufferType type,
347 const gfx::GpuMemoryBufferId& id) { 347 const gfx::GpuMemoryBufferId& id,
348 uint32 sync_point) {
348 // Note: Nothing to do here as ownership of shared memory backed 349 // Note: Nothing to do here as ownership of shared memory backed
349 // GpuMemoryBuffers is passed with IPC. 350 // GpuMemoryBuffers is passed with IPC.
350 } 351 }
351 352
352 void ChildProcessHostImpl::GpuMemoryBufferAllocated( 353 void ChildProcessHostImpl::GpuMemoryBufferAllocated(
353 IPC::Message* reply, 354 IPC::Message* reply,
354 const gfx::GpuMemoryBufferHandle& handle) { 355 const gfx::GpuMemoryBufferHandle& handle) {
355 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 356 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
356 handle); 357 handle);
357 Send(reply); 358 Send(reply);
358 } 359 }
359 360
360 } // namespace content 361 } // namespace content
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.h ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698