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

Unified Diff: media/capture/video/linux/video_capture_device_chromeos.cc

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: change comments Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/linux/video_capture_device_chromeos.cc
diff --git a/media/capture/video/linux/video_capture_device_chromeos.cc b/media/capture/video/linux/video_capture_device_chromeos.cc
index 9e8dd19806e7bda97804b58cccbcf28792fab672..09047c718cc6abbdd1a2af55dd652a24979176c4 100644
--- a/media/capture/video/linux/video_capture_device_chromeos.cc
+++ b/media/capture/video/linux/video_capture_device_chromeos.cc
@@ -119,7 +119,7 @@ VideoCaptureDeviceChromeOS::~VideoCaptureDeviceChromeOS() {
void VideoCaptureDeviceChromeOS::SetRotation(int rotation) {
// We assume external camera is facing the users. If not, the users can
// rotate the camera manually by themselves.
- if (lens_facing_ == CameraFacingChromeOS::LensFacing::BACK) {
+ if (lens_facing_ == VideoFacingMode::MEDIA_VIDEO_FACING_ENVIRONMENT) {
// Original frame when |rotation| = 0
// -----------------------
// | * |

Powered by Google App Engine
This is Rietveld 408576698