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

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

Issue 709433002: Revert of content: Cleanup GpuMemoryBuffers when child process is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu-memory-buffer-id-refactor
Patch Set: 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 g_next_gpu_memory_buffer_id.GetNext(), 340 g_next_gpu_memory_buffer_id.GetNext(),
341 gfx::Size(width, height), 341 gfx::Size(width, height),
342 format, 342 format,
343 peer_handle_, 343 peer_handle_,
344 base::Bind(&ChildProcessHostImpl::GpuMemoryBufferAllocated, 344 base::Bind(&ChildProcessHostImpl::GpuMemoryBufferAllocated,
345 base::Unretained(this), 345 base::Unretained(this),
346 reply)); 346 reply));
347 } 347 }
348 348
349 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( 349 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer(
350 gfx::GpuMemoryBufferType type,
350 gfx::GpuMemoryBufferId id, 351 gfx::GpuMemoryBufferId id,
351 uint32 sync_point) { 352 uint32 sync_point) {
352 // Note: Nothing to do here as ownership of shared memory backed 353 // Note: Nothing to do here as ownership of shared memory backed
353 // GpuMemoryBuffers is passed with IPC. 354 // GpuMemoryBuffers is passed with IPC.
354 } 355 }
355 356
356 void ChildProcessHostImpl::GpuMemoryBufferAllocated( 357 void ChildProcessHostImpl::GpuMemoryBufferAllocated(
357 IPC::Message* reply, 358 IPC::Message* reply,
358 const gfx::GpuMemoryBufferHandle& handle) { 359 const gfx::GpuMemoryBufferHandle& handle) {
359 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 360 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
360 handle); 361 handle);
361 Send(reply); 362 Send(reply);
362 } 363 }
363 364
364 } // namespace content 365 } // 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