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

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

Issue 2554113002: Deprecate UnthrottledThreadTimer. (Closed)
Patch Set: Created 4 years 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/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 3e66e714d787c2019aa964c29ced7d6b6d426afb..9c8d61485d85682c5b7872700170714b41044d10 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -343,12 +343,23 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName,
: HTMLElement(tagName, document),
ActiveScriptWrappable(this),
ActiveDOMObject(&document),
- m_loadTimer(this, &HTMLMediaElement::loadTimerFired),
- m_progressEventTimer(this, &HTMLMediaElement::progressEventTimerFired),
- m_playbackProgressTimer(this,
- &HTMLMediaElement::playbackProgressTimerFired),
- m_audioTracksTimer(this, &HTMLMediaElement::audioTracksTimerFired),
+ m_loadTimer(TaskRunnerHelper::get(TaskType::Unthrottled, &document),
+ this,
+ &HTMLMediaElement::loadTimerFired),
+ m_progressEventTimer(
+ TaskRunnerHelper::get(TaskType::Unthrottled, &document),
+ this,
+ &HTMLMediaElement::progressEventTimerFired),
+ m_playbackProgressTimer(
+ TaskRunnerHelper::get(TaskType::Unthrottled, &document),
+ this,
+ &HTMLMediaElement::playbackProgressTimerFired),
+ m_audioTracksTimer(
+ TaskRunnerHelper::get(TaskType::Unthrottled, &document),
+ this,
+ &HTMLMediaElement::audioTracksTimerFired),
m_viewportFillDebouncerTimer(
+ TaskRunnerHelper::get(TaskType::Unthrottled, &document),
this,
&HTMLMediaElement::viewportFillDebouncerTimerFired),
m_playedTimeRanges(),

Powered by Google App Engine
This is Rietveld 408576698