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

Unified Diff: media/blink/webmediaplayer_params.cc

Issue 1972783003: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify suspend state logic, and rebase Created 4 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: media/blink/webmediaplayer_params.cc
diff --git a/media/blink/webmediaplayer_params.cc b/media/blink/webmediaplayer_params.cc
index 9ad3ba2322920b15bb2597e6b07616f007f5e7a3..7811b4d3eda5770a6980e37ef6868238b4a828f0 100644
--- a/media/blink/webmediaplayer_params.cc
+++ b/media/blink/webmediaplayer_params.cc
@@ -22,7 +22,8 @@ WebMediaPlayerParams::WebMediaPlayerParams(
const AdjustAllocatedMemoryCB& adjust_allocated_memory_cb,
blink::WebContentDecryptionModule* initial_cdm,
SurfaceManager* surface_manager,
- blink::WebMediaSession* media_session)
+ blink::WebMediaSession* media_session,
+ bool allow_idle_suspend)
: defer_load_cb_(defer_load_cb),
audio_renderer_sink_(audio_renderer_sink),
media_log_(media_log),
@@ -33,7 +34,8 @@ WebMediaPlayerParams::WebMediaPlayerParams(
adjust_allocated_memory_cb_(adjust_allocated_memory_cb),
initial_cdm_(initial_cdm),
surface_manager_(surface_manager),
- media_session_(media_session) {}
+ media_session_(media_session),
+ allow_idle_suspend_(allow_idle_suspend) {}
WebMediaPlayerParams::~WebMediaPlayerParams() {}
« content/public/renderer/content_renderer_client.h ('K') | « media/blink/webmediaplayer_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698