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

Side by Side Diff: services/video_capture/mojo_shared_memory_buffer_tracker.cc

Issue 2410383002: VideoCapture: more migration IPC-->mojo, part 6 (Closed)
Patch Set: Comment correction Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/video_capture/mojo_shared_memory_buffer_tracker.h" 5 #include "services/video_capture/mojo_shared_memory_buffer_tracker.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "services/video_capture/mojo_shared_memory_buffer_handle.h" 8 #include "services/video_capture/mojo_shared_memory_buffer_handle.h"
9 9
10 namespace video_capture { 10 namespace video_capture {
(...skipping 24 matching lines...) Expand all
35 frame_ = media::MojoSharedBufferVideoFrame::CreateDefaultI420( 35 frame_ = media::MojoSharedBufferVideoFrame::CreateDefaultI420(
36 dimensions, base::TimeDelta()); 36 dimensions, base::TimeDelta());
37 return true; 37 return true;
38 } 38 }
39 39
40 std::unique_ptr<media::VideoCaptureBufferHandle> 40 std::unique_ptr<media::VideoCaptureBufferHandle>
41 MojoSharedMemoryBufferTracker::GetBufferHandle() { 41 MojoSharedMemoryBufferTracker::GetBufferHandle() {
42 return base::MakeUnique<MojoSharedMemoryBufferHandle>(this); 42 return base::MakeUnique<MojoSharedMemoryBufferHandle>(this);
43 } 43 }
44 44
45 bool MojoSharedMemoryBufferTracker::ShareToProcess( 45 mojo::ScopedSharedBufferHandle
46 base::ProcessHandle process_handle, 46 MojoSharedMemoryBufferTracker::GetHandleForTransit() {
47 base::SharedMemoryHandle* new_handle) { 47 return mojo::ScopedSharedBufferHandle();
dcheng 2016/10/20 08:37:56 I'm not entirely sure I understand the purpose of
mcasas 2016/10/20 15:09:51 //services/video_capture is still under developmen
48 return false;
49 } 48 }
50 49
51 } // namespace video_capture 50 } // namespace video_capture
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698