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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 1885073004: Merge M51: "Disable idle suspend for GpuVideoDecoder produced frames on OSX, Win." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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 | « media/base/video_frame_metadata.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 0d0db4829d3907867a3e2e2574452464824e606c..1af8a5209f30dfcf076663fbf6d5b7cb30e6715f 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -490,6 +490,13 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// unimportant.
bool suppress_destruction_errors_;
+ // State indicating if it's okay to suspend or not. Updated on the first time
+ // OnSuspendRequested() is called. If the state is UNKNOWN, the current frame
+ // from the compositor will be queried to see if suspend is supported; the
+ // state will be set to YES or NO respectively if a frame is available.
+ enum class CanSuspendState { UNKNOWN, YES, NO };
+ CanSuspendState can_suspend_state_;
+
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
};
« no previous file with comments | « media/base/video_frame_metadata.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698