Chromium Code Reviews| Index: media/capture/video/linux/video_capture_device_factory_linux.cc |
| diff --git a/media/capture/video/linux/video_capture_device_factory_linux.cc b/media/capture/video/linux/video_capture_device_factory_linux.cc |
| index 14a1ca12e6b4c5679e1ed4efd5fc3df4b9aae3a2..970efdd6f5c36618768b378142065037edfb6fc4 100644 |
| --- a/media/capture/video/linux/video_capture_device_factory_linux.cc |
| +++ b/media/capture/video/linux/video_capture_device_factory_linux.cc |
| @@ -228,6 +228,10 @@ void VideoCaptureDeviceFactoryLinux::GetDeviceDescriptors( |
| #endif |
| } |
| } |
| + // Since JS doesn't have API to get camera facing, we sort the list to make |
| + // apps can use the front camera by default. |
| + // TODO(henryhsu): remove this after JS API completed. |
|
mcasas
2017/01/23 16:46:59
Add here the https://crbug.com/ appropriate number
henryhsu
2017/01/24 03:14:31
Done.
|
| + std::sort(device_descriptors->begin(), device_descriptors->end()); |
| } |
| void VideoCaptureDeviceFactoryLinux::GetSupportedFormats( |