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

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: 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..528c3ed5719dbbb60e8eb013849ac81c3c26dd6e 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);
+
// Implements MediaStreamProvider.
virtual void Register(MediaStreamProviderListener* listener,
const scoped_refptr<base::SingleThreadTaskRunner>&
@@ -183,6 +187,8 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
media::VideoCaptureSessionId session_id,
gfx::NativeViewId window_id);
+ void SetDisplayRotationOnDeviceThread(gfx::Display::Rotation rotation);
+
// The message loop of media stream device thread, where VCD's live.
scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_;
@@ -241,6 +247,8 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
std::map<media::VideoCaptureSessionId, gfx::NativeViewId>
notification_window_ids_;
+ gfx::Display::Rotation display_rotation_;
vrk (LEFT CHROMIUM) 2014/05/08 21:43:34 Add comment saying this should be on the device th
Zachary Kuznia 2014/05/08 21:51:22 Done.
+
DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager);
};

Powered by Google App Engine
This is Rietveld 408576698