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

Unified Diff: content/browser/media/capture/desktop_capture_device.h

Issue 268123003: Enables using the magnification API for screen capturing on Windows under a Finch experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/media/capture/desktop_capture_device.h
diff --git a/content/browser/media/capture/desktop_capture_device.h b/content/browser/media/capture/desktop_capture_device.h
index af16bda4127821922924ce8868d23e6dbf4a98be..9187517086f96634429678b59490c450a62a9286 100644
--- a/content/browser/media/capture/desktop_capture_device.h
+++ b/content/browser/media/capture/desktop_capture_device.h
@@ -14,6 +14,7 @@
namespace base {
class SequencedTaskRunner;
+class Thread;
} // namespace base
namespace webrtc {
@@ -33,9 +34,15 @@ class CONTENT_EXPORT DesktopCaptureDevice : public media::VideoCaptureDevice {
static scoped_ptr<media::VideoCaptureDevice> Create(
const DesktopMediaID& source);
+ // Run the capturer on the |task_runner|.
DesktopCaptureDevice(scoped_refptr<base::SequencedTaskRunner> task_runner,
scoped_ptr<webrtc::DesktopCapturer> desktop_capturer,
DesktopMediaID::Type type);
+ // Run the capturer on a dedicated thread. Needed for using the magnification
+ // API on Windows.
+ DesktopCaptureDevice(scoped_ptr<base::Thread> thread,
Sergey Ulanov 2014/05/05 20:10:06 It's better to avoid overriding constructor. I sug
+ scoped_ptr<webrtc::DesktopCapturer> desktop_capturer,
+ DesktopMediaID::Type type);
virtual ~DesktopCaptureDevice();
// VideoCaptureDevice interface.

Powered by Google App Engine
This is Rietveld 408576698