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

Side by Side Diff: media/video/capture/win/video_capture_device_factory_win.cc

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 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
« no previous file with comments | « media/video/capture/video_capture_device_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/win/video_capture_device_factory_win.h" 5 #include "media/video/capture/win/video_capture_device_factory_win.h"
6 6
7 #include <mfapi.h> 7 #include <mfapi.h>
8 #include <mferror.h> 8 #include <mferror.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 void VideoCaptureDeviceFactoryWin::GetDeviceSupportedFormats( 452 void VideoCaptureDeviceFactoryWin::GetDeviceSupportedFormats(
453 const Name& device, 453 const Name& device,
454 VideoCaptureFormats* formats) { 454 VideoCaptureFormats* formats) {
455 DCHECK(thread_checker_.CalledOnValidThread()); 455 DCHECK(thread_checker_.CalledOnValidThread());
456 if (use_media_foundation_) 456 if (use_media_foundation_)
457 GetDeviceSupportedFormatsMediaFoundation(device, formats); 457 GetDeviceSupportedFormatsMediaFoundation(device, formats);
458 else 458 else
459 GetDeviceSupportedFormatsDirectShow(device, formats); 459 GetDeviceSupportedFormatsDirectShow(device, formats);
460 } 460 }
461 461
462 // static
463 VideoCaptureDeviceFactory*
464 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory(
465 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
466 return new VideoCaptureDeviceFactoryWin();
467 }
468
462 } // namespace media 469 } // namespace media
OLDNEW
« no previous file with comments | « media/video/capture/video_capture_device_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698