OLD | NEW |
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 "media/video/capture/mac/video_capture_device_mac.h" | 5 #include "media/video/capture/mac/video_capture_device_mac.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 *width = matched_width; | 60 *width = matched_width; |
61 *height = matched_height; | 61 *height = matched_height; |
62 } | 62 } |
63 | 63 |
64 // TODO(mcasas): Remove the following static methods when they are no longer | 64 // TODO(mcasas): Remove the following static methods when they are no longer |
65 // referenced from VideoCaptureDeviceFactory, i.e. when all OS platforms have | 65 // referenced from VideoCaptureDeviceFactory, i.e. when all OS platforms have |
66 // splitted the VideoCaptureDevice into VideoCaptureDevice and | 66 // splitted the VideoCaptureDevice into VideoCaptureDevice and |
67 // VideoCaptureDeviceFactory. | 67 // VideoCaptureDeviceFactory. |
68 | 68 |
69 // static | 69 // static |
70 VideoCaptureDevice* VideoCaptureDevice::Create(const Name& device_name) { | 70 VideoCaptureDevice* VideoCaptureDevice::Create( |
| 71 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
| 72 const Name& device_name) { |
71 NOTREACHED(); | 73 NOTREACHED(); |
72 return NULL; | 74 return NULL; |
73 } | 75 } |
74 // static | 76 // static |
75 void VideoCaptureDevice::GetDeviceNames(Names* device_names) { | 77 void VideoCaptureDevice::GetDeviceNames(Names* device_names) { |
76 NOTREACHED(); | 78 NOTREACHED(); |
77 } | 79 } |
78 | 80 |
79 // static | 81 // static |
80 void VideoCaptureDevice::GetDeviceSupportedFormats( | 82 void VideoCaptureDevice::GetDeviceSupportedFormats( |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 if (![capture_device_ setCaptureHeight:capture_format_.frame_size.height() | 303 if (![capture_device_ setCaptureHeight:capture_format_.frame_size.height() |
302 width:capture_format_.frame_size.width() | 304 width:capture_format_.frame_size.width() |
303 frameRate:capture_format_.frame_rate]) { | 305 frameRate:capture_format_.frame_rate]) { |
304 ReceiveError("Could not configure capture device."); | 306 ReceiveError("Could not configure capture device."); |
305 return false; | 307 return false; |
306 } | 308 } |
307 return true; | 309 return true; |
308 } | 310 } |
309 | 311 |
310 } // namespace media | 312 } // namespace media |
OLD | NEW |