Chromium Code Reviews| Index: content/browser/renderer_host/media/video_capture_manager.h |
| diff --git a/content/browser/renderer_host/media/video_capture_manager.h b/content/browser/renderer_host/media/video_capture_manager.h |
| index 64589a974a33050050099d8c093eea3e35b5cf1a..f6f87a7a300d57ca4a9661929caa3169f527a911 100644 |
| --- a/content/browser/renderer_host/media/video_capture_manager.h |
| +++ b/content/browser/renderer_host/media/video_capture_manager.h |
| @@ -26,6 +26,7 @@ |
| #include "media/video/capture/video_capture_device.h" |
| #include "media/video/capture/video_capture_device_factory.h" |
| #include "media/video/capture/video_capture_types.h" |
| +#include "ui/gfx/display.h" |
| namespace content { |
| class VideoCaptureController; |
| @@ -41,6 +42,9 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { |
| explicit VideoCaptureManager( |
| scoped_ptr<media::VideoCaptureDeviceFactory> factory); |
| + // Set the Display rotation. |
| + void SetDisplayRotation(gfx::Display::Rotation rotation); |
|
vrk (LEFT CHROMIUM)
2014/05/09 01:11:31
nit: Comment that this must be called on the IO th
Zachary Kuznia
2014/05/09 07:42:22
Done.
|
| + |
| // Implements MediaStreamProvider. |
| virtual void Register(MediaStreamProviderListener* listener, |
| const scoped_refptr<base::SingleThreadTaskRunner>& |
| @@ -241,6 +245,9 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { |
| std::map<media::VideoCaptureSessionId, gfx::NativeViewId> |
| notification_window_ids_; |
| + // Accessed on the device thread only. |
| + gfx::Display::Rotation display_rotation_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); |
| }; |