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

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

Issue 720043003: Use factory method to create VideoCaptureDeviceFactory . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes by review comments. Created 6 years, 1 month 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"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 case VideoCaptureDevice::Name::DECKLINK: 197 case VideoCaptureDevice::Name::DECKLINK:
198 DVLOG(1) << "Enumerating video capture capabilities " << device.name(); 198 DVLOG(1) << "Enumerating video capture capabilities " << device.name();
199 VideoCaptureDeviceDeckLinkMac::EnumerateDeviceCapabilities( 199 VideoCaptureDeviceDeckLinkMac::EnumerateDeviceCapabilities(
200 device, supported_formats); 200 device, supported_formats);
201 break; 201 break;
202 default: 202 default:
203 NOTREACHED(); 203 NOTREACHED();
204 } 204 }
205 } 205 }
206 206
207 // static
208 VideoCaptureDeviceFactory*
209 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory(
210 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
211 return new VideoCaptureDeviceFactoryMac(ui_task_runner);
212 }
213
207 } // namespace media 214 } // namespace media
OLDNEW
« no previous file with comments | « media/video/capture/linux/video_capture_device_factory_linux.cc ('k') | media/video/capture/video_capture_device_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698