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

Unified Diff: media/video/capture/screen/screen_capture_device.cc

Issue 13556004: Add CreateWithDisableAero, to allow Windows capturer to be created without disabling Aero. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create screen capture device without disabling Aero. Created 7 years, 8 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: media/video/capture/screen/screen_capture_device.cc
diff --git a/media/video/capture/screen/screen_capture_device.cc b/media/video/capture/screen/screen_capture_device.cc
index c831d03cd066eac8878e9562d53d57eccc635dc7..23700d41d0b86c2a1337316c2bd43eb4f0179d5e 100644
--- a/media/video/capture/screen/screen_capture_device.cc
+++ b/media/video/capture/screen/screen_capture_device.cc
@@ -276,6 +276,11 @@ void ScreenCaptureDevice::Core::DoAllocate(int frame_rate) {
// ChromeOS' drivers [can be patched to] support DAMAGE properly, so use it.
if (!screen_capturer_)
screen_capturer_ = ScreenCapturer::CreateWithXDamage(true);
+#elif defined(OS_WIN)
+ // ScreenCapturerWin disables Aero by default. We don't want it disabled for
+ // WebRTC screen capture, though.
+ if (!screen_capturer_)
+ screen_capturer_ = ScreenCapturer::CreateWithDisableAero(false);
#else
if (!screen_capturer_)
screen_capturer_ = ScreenCapturer::Create();
« no previous file with comments | « no previous file | media/video/capture/screen/screen_capturer.h » ('j') | media/video/capture/screen/screen_capturer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698