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

Unified Diff: content/browser/renderer_host/media/video_capture_manager.h

Issue 270263008: Add a ChromeOS implementation of VideoCaptureDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698