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

Unified Diff: media/capture/video/video_capture_device_client.h

Issue 2508803002: Rotate frames correctly for back camera (Closed)
Patch Set: remove unused header Created 4 years, 1 month 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/video_capture_device_client.h
diff --git a/media/capture/video/video_capture_device_client.h b/media/capture/video/video_capture_device_client.h
index b36ebe5dd04245b972d4c7415d41b366f609c502..012bd5ad140aa8f4fed1495f3acee633e7330cbb 100644
--- a/media/capture/video/video_capture_device_client.h
+++ b/media/capture/video/video_capture_device_client.h
@@ -75,6 +75,7 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
const std::string& reason) override;
void OnLog(const std::string& message) override;
double GetBufferPoolUtilization() const override;
+ void SetCameraFacing(bool is_back_camera) override;
private:
// Reserve output buffer into which I420 contents can be copied directly.
@@ -113,6 +114,9 @@ class CAPTURE_EXPORT VideoCaptureDeviceClient
// The pool of shared-memory buffers used for capturing.
const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;
+ // Whether the capture device is back camera.
+ bool is_back_camera_;
+
#if DCHECK_IS_ON()
// Counter used to track the number of times consecutive capture buffers are
// dropped.

Powered by Google App Engine
This is Rietveld 408576698