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

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

Issue 1429213002: Converted video frame and image callbacks to use new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed content_unittests Created 5 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
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 // and handle failure in a controlled way when not. We just need to make 310 // and handle failure in a controlled way when not. We just need to make
311 // sure |usage| is supported here. 311 // sure |usage| is supported here.
312 if (GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) { 312 if (GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) {
313 *handle = GpuMemoryBufferImplSharedMemory::AllocateForChildProcess( 313 *handle = GpuMemoryBufferImplSharedMemory::AllocateForChildProcess(
314 id, gfx::Size(width, height), format, peer_process_.Handle()); 314 id, gfx::Size(width, height), format, peer_process_.Handle());
315 } 315 }
316 } 316 }
317 317
318 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( 318 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer(
319 gfx::GpuMemoryBufferId id, 319 gfx::GpuMemoryBufferId id,
320 uint32 sync_point) { 320 const gpu::SyncToken& sync_token) {
321 // Note: Nothing to do here as ownership of shared memory backed 321 // Note: Nothing to do here as ownership of shared memory backed
322 // GpuMemoryBuffers is passed with IPC. 322 // GpuMemoryBuffers is passed with IPC.
323 } 323 }
324 324
325 } // namespace content 325 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698