| 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);
|
| };
|
|
|
|
|