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

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: Remove comment. 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
« no previous file with comments | « no previous file | media/video/capture/screen/screen_capturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698