Index: third_party/WebKit/Source/core/html/HTMLMediaElement.h |
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h |
index 540c9271134c84ac0359ee3f709e8c55e934a562..3ca3829c8d930cbc64fae6340db6058b2f6b5661 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h |
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h |
@@ -397,12 +397,15 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement, |
WebMediaPlayer::TrackId getSelectedVideoTrackId() final; |
bool isAutoplayingMuted() final; |
void requestReload(const WebURL&) final; |
+ void enableMonitorViewportIntersection(bool) final; |
void loadTimerFired(TimerBase*); |
void progressEventTimerFired(TimerBase*); |
void playbackProgressTimerFired(TimerBase*); |
+ void checkIntersectionWhenPausedTimerFired(TimerBase*); |
void startPlaybackProgressTimer(); |
void startProgressEventTimer(); |
+ void startCheckIntersectionWhenPausedTimer(); |
void stopPeriodicTimers(); |
void seek(double time); |
@@ -549,6 +552,7 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement, |
UnthrottledThreadTimer<HTMLMediaElement> m_playbackProgressTimer; |
UnthrottledThreadTimer<HTMLMediaElement> m_audioTracksTimer; |
UnthrottledThreadTimer<HTMLMediaElement> m_viewportFillDebouncerTimer; |
+ UnthrottledThreadTimer<HTMLMediaElement> m_checkIntersectionWhenPausedTimer; |
Member<TimeRanges> m_playedTimeRanges; |
Member<GenericEventQueue> m_asyncEventQueue; |
@@ -734,6 +738,8 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement, |
IntRect m_currentIntersectRect; |
+ bool m_enableMonitorViewportIntersection = false; |
+ |
static URLRegistry* s_mediaStreamRegistry; |
}; |