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

Side by Side Diff: content/browser/renderer_host/media/shared_memory_buffer_handle.cc

Issue 2378943002: Let clients interact with VideoCaptureDeviceClient instead of VideoCaptureDevice (Closed)
Patch Set: mcasas comments 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 "content/browser/renderer_host/media/shared_memory_buffer_handle.h" 5 #include "content/browser/renderer_host/media/shared_memory_buffer_handle.h"
6 6
7 #include "content/browser/renderer_host/media/shared_memory_buffer_tracker.h" 7 #include "content/browser/renderer_host/media/shared_memory_buffer_tracker.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 20 matching lines...) Expand all
31 NOTREACHED(); 31 NOTREACHED();
32 return nullptr; 32 return nullptr;
33 } 33 }
34 34
35 #if defined(OS_POSIX) && !defined(OS_MACOSX) 35 #if defined(OS_POSIX) && !defined(OS_MACOSX)
36 base::FileDescriptor SharedMemoryBufferHandle::AsPlatformFile() { 36 base::FileDescriptor SharedMemoryBufferHandle::AsPlatformFile() {
37 return tracker_->shared_memory_.handle(); 37 return tracker_->shared_memory_.handle();
38 } 38 }
39 #endif 39 #endif
40 40
41 bool SharedMemoryBufferHandle::IsBackedByVideoFrame() const {
42 return false;
43 }
44
45 scoped_refptr<media::VideoFrame> SharedMemoryBufferHandle::GetVideoFrame() {
46 return scoped_refptr<media::VideoFrame>();
47 }
48
41 } // namespace content 49 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698