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

Side by Side Diff: media/video/capture/mac/video_capture_device_factory_mac.mm

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_factory_mac.h" 5 #include "media/video/capture/mac/video_capture_device_factory_mac.h"
6 6
7 #import <IOKit/audio/IOAudioTypes.h> 7 #import <IOKit/audio/IOAudioTypes.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/profiler/scoped_tracker.h" 11 #include "base/profiler/scoped_tracker.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/task_runner_util.h" 13 #include "base/task_runner_util.h"
14 #import "media/base/mac/avfoundation_glue.h" 14 #import "media/base/mac/avfoundation_glue.h"
15 #import "media/video/capture/mac/video_capture_device_avfoundation_mac.h" 15 #import "media/video/capture/mac/video_capture_device_avfoundation_mac.h"
16 #import "media/video/capture/mac/video_capture_device_decklink_mac.h"
16 #include "media/video/capture/mac/video_capture_device_mac.h" 17 #include "media/video/capture/mac/video_capture_device_mac.h"
17 #import "media/video/capture/mac/video_capture_device_decklink_mac.h"
18 #import "media/video/capture/mac/video_capture_device_qtkit_mac.h" 18 #import "media/video/capture/mac/video_capture_device_qtkit_mac.h"
19 19
20 namespace media { 20 namespace media {
21 21
22 // In QTKit API, some devices are known to crash if VGA is requested, for them 22 // In QTKit API, some devices are known to crash if VGA is requested, for them
23 // HD is the only supported resolution (see http://crbug.com/396812). In the 23 // HD is the only supported resolution (see http://crbug.com/396812). In the
24 // AVfoundation case, we skip enumerating them altogether. These devices are 24 // AVfoundation case, we skip enumerating them altogether. These devices are
25 // identified by a characteristic trailing substring of uniqueId. At the moment 25 // identified by a characteristic trailing substring of uniqueId. At the moment
26 // these are just Blackmagic devices. 26 // these are just Blackmagic devices.
27 const struct NameAndVid { 27 const struct NameAndVid {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 206
207 // static 207 // static
208 VideoCaptureDeviceFactory* 208 VideoCaptureDeviceFactory*
209 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory( 209 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory(
210 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 210 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
211 return new VideoCaptureDeviceFactoryMac(ui_task_runner); 211 return new VideoCaptureDeviceFactoryMac(ui_task_runner);
212 } 212 }
213 213
214 } // namespace media 214 } // namespace media
OLDNEW
« no previous file with comments | « media/video/capture/mac/video_capture_device_decklink_mac.mm ('k') | sandbox/mac/bootstrap_sandbox_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698