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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTrackElement.cpp

Issue 2637833003: Convert HTMLTrackElement timer to per-frame scheduler as Networking. (Closed)
Patch Set: Convert HTMLTrackElement timer to per-frame scheduler as MediaElementEvent. Created 3 years, 11 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 | « third_party/WebKit/Source/core/html/HTMLTrackElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLTrackElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp b/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp
index ad63ae1609959f2f60073a77d3424e3ac1b86265..ca2d9c6c793d9765d3e740e5ba8121e69cd24ae2 100644
--- a/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTrackElement.cpp
@@ -27,6 +27,7 @@
#include "core/HTMLNames.h"
#include "core/dom/Document.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/html/CrossOriginAttribute.h"
@@ -49,7 +50,9 @@ static String urlForLoggingTrack(const KURL& url) {
inline HTMLTrackElement::HTMLTrackElement(Document& document)
: HTMLElement(trackTag, document),
- m_loadTimer(this, &HTMLTrackElement::loadTimerFired) {
+ m_loadTimer(TaskRunnerHelper::get(TaskType::Networking, &document),
+ this,
+ &HTMLTrackElement::loadTimerFired) {
DVLOG(TRACK_LOG_LEVEL) << "HTMLTrackElement - " << (void*)this;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTrackElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698