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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 2495753002: Reenable idle suspension of media elements on Windows. (Closed)
Patch Set: add destructor Created 4 years, 1 month 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/gpu/dxva_picture_buffer_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index c746292dd77438a14580527234d2265b82549804..b8c006331af0086c774ddf282c908cf061e538d0 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -1761,7 +1761,8 @@ void WebMediaPlayerImpl::SetSuspendState(bool is_suspended) {
if (IsNetworkStateError(network_state_))
return;
-#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && !defined(OS_MACOSX)
+#if !defined(OS_WIN) && !defined(OS_ANDROID) && !defined(OS_CHROMEOS) && \
DaleCurtis 2016/11/11 23:16:16 That's everything now :)
jbauman 2016/11/11 23:17:15 Ok, I wasn't sure if Chromecast was included here
DaleCurtis 2016/11/11 23:34:53 Ah, you're right they're still using this workarou
+ !defined(OS_MACOSX)
// TODO(sandersd): idle suspend is disabled if decoder owns video frame.
// Used on Windows+Chromecast. Since GetCurrentFrameFromCompositor is a
// synchronous cross-thread post, avoid the cost on platforms that always
« no previous file with comments | « no previous file | media/gpu/dxva_picture_buffer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698