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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControls.h

Issue 2280123002: Fix under-invalidation of media buffered ranges (Closed)
Patch Set: Conditionally invalidate Created 4 years, 4 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
Index: third_party/WebKit/Source/core/html/shadow/MediaControls.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.h b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
index 8b5892229a9919dc173917c16384231f1a0d6e78..0487d323da8766917c804bc9cc13c31e8a382a3d 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.h
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.h
@@ -34,6 +34,7 @@ namespace blink {
class Event;
class TextTrackContainer;
+class TimeRanges;
class CORE_EXPORT MediaControls final : public HTMLDivElement {
public:
@@ -127,6 +128,11 @@ private:
void defaultEventHandler(Event*) override;
bool containsRelatedTarget(Event*);
+ void updateTimelinePosition();
+ void updateBufferedRanges();
+ void startOrStopBufferedRangesPaintInvalidationTimer();
+ void bufferedRangesPaintInvalidationTimerFired(TimerBase*);
+
Member<HTMLMediaElement> m_mediaElement;
// Media control elements.
@@ -155,6 +161,9 @@ private:
int m_panelWidth;
bool m_allowHiddenVolumeControls : 1;
+
+ Timer<MediaControls> m_bufferedRangesPaintInvalidationTimer;
+ Member<TimeRanges> m_lastBufferedRanges;
};
DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
« no previous file with comments | « third_party/WebKit/Source/core/html/TimeRanges.h ('k') | third_party/WebKit/Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698