OLD | NEW |
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 Loading... |
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 |
OLD | NEW |