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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 1879253002: Disable idle suspend for GpuVideoDecoder produced frames on OSX, Win. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Relocate. 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 035001722cc891f7d8b8b4cdb79ad2e9d7d185f8..59b021f0e1c1764d98c83ac5a7770d78aba58c2b 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