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