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

Side by Side Diff: media/capture/video/video_capture_device_factory.cc

Issue 1815983003: Remove deprecated QTKit Video Capture Support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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/capture/video/video_capture_device_factory.h" 5 #include "media/capture/video/video_capture_device_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 13 matching lines...) Expand all
24 if (command_line->HasSwitch(switches::kUseFakeDeviceForMediaStream)) { 24 if (command_line->HasSwitch(switches::kUseFakeDeviceForMediaStream)) {
25 if (command_line->HasSwitch(switches::kUseFileForFakeVideoCapture)) { 25 if (command_line->HasSwitch(switches::kUseFileForFakeVideoCapture)) {
26 return scoped_ptr<VideoCaptureDeviceFactory>( 26 return scoped_ptr<VideoCaptureDeviceFactory>(
27 new media::FileVideoCaptureDeviceFactory()); 27 new media::FileVideoCaptureDeviceFactory());
28 } else { 28 } else {
29 return scoped_ptr<VideoCaptureDeviceFactory>( 29 return scoped_ptr<VideoCaptureDeviceFactory>(
30 new media::FakeVideoCaptureDeviceFactory()); 30 new media::FakeVideoCaptureDeviceFactory());
31 } 31 }
32 } else { 32 } else {
33 // |ui_task_runner| is needed for the Linux ChromeOS factory to retrieve 33 // |ui_task_runner| is needed for the Linux ChromeOS factory to retrieve
34 // screen rotations and for the Mac factory to run QTKit device enumeration. 34 // screen rotations.
35 return scoped_ptr<VideoCaptureDeviceFactory>( 35 return scoped_ptr<VideoCaptureDeviceFactory>(
36 CreateVideoCaptureDeviceFactory(ui_task_runner)); 36 CreateVideoCaptureDeviceFactory(ui_task_runner));
37 } 37 }
38 } 38 }
39 39
40 VideoCaptureDeviceFactory::VideoCaptureDeviceFactory() { 40 VideoCaptureDeviceFactory::VideoCaptureDeviceFactory() {
41 thread_checker_.DetachFromThread(); 41 thread_checker_.DetachFromThread();
42 } 42 }
43 43
44 VideoCaptureDeviceFactory::~VideoCaptureDeviceFactory() { 44 VideoCaptureDeviceFactory::~VideoCaptureDeviceFactory() {
(...skipping 14 matching lines...) Expand all
59 // static 59 // static
60 VideoCaptureDeviceFactory* 60 VideoCaptureDeviceFactory*
61 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory( 61 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory(
62 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 62 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
63 NOTIMPLEMENTED(); 63 NOTIMPLEMENTED();
64 return NULL; 64 return NULL;
65 } 65 }
66 #endif 66 #endif
67 67
68 } // namespace media 68 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_device.cc ('k') | media/capture/video/video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698