OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/memory/ptr_util.h" |
5 #include "services/video_capture/test/mock_device_factory.h" | 6 #include "services/video_capture/test/mock_device_factory.h" |
6 | 7 |
7 namespace { | 8 namespace { |
8 | 9 |
9 // Report a single hard-coded supported format to clients. | 10 // Report a single hard-coded supported format to clients. |
10 media::VideoCaptureFormat kSupportedFormat(gfx::Size(), | 11 media::VideoCaptureFormat kSupportedFormat(gfx::Size(), |
11 25.0f, | 12 25.0f, |
12 media::PIXEL_FORMAT_I420, | 13 media::PIXEL_FORMAT_I420, |
13 media::PIXEL_STORAGE_CPU); | 14 media::PIXEL_STORAGE_CPU); |
14 | 15 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 device_descriptors->push_back(entry.first); | 68 device_descriptors->push_back(entry.first); |
68 } | 69 } |
69 | 70 |
70 void MockDeviceFactory::GetSupportedFormats( | 71 void MockDeviceFactory::GetSupportedFormats( |
71 const media::VideoCaptureDeviceDescriptor& device_descriptor, | 72 const media::VideoCaptureDeviceDescriptor& device_descriptor, |
72 media::VideoCaptureFormats* supported_formats) { | 73 media::VideoCaptureFormats* supported_formats) { |
73 supported_formats->push_back(kSupportedFormat); | 74 supported_formats->push_back(kSupportedFormat); |
74 } | 75 } |
75 | 76 |
76 } // namespace video_capture | 77 } // namespace video_capture |
OLD | NEW |