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

Issue 2554113002: Deprecate UnthrottledThreadTimer. (Closed)

Created:
4 years ago by altimin
Modified:
4 years ago
CC:
alex clarke (OOO till 29th), blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, Sami, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecate UnthrottledThreadTimer. Per the effort of moving tasks to per-frame task queues, instead of UnthrottledThreadTimer TaskRunnerTimer with appropriate WebTaskRunner should be used. TaskRunnerHelper::get(TaskType::Unthrottled, ...) will return the right WebTaskRunner. Also this patch fixes usages of UnthrottledThreadTimer in HTMLMediaElement. R=haraken@chromium.org,mlamouri@chromium.org BUG=624696 Committed: https://crrev.com/942fe9a2a22a011760ab7a278f90cadd36872b84 Cr-Commit-Position: refs/heads/master@{#440099}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use Timer::moveToNewTaskRunner #

Patch Set 3 : Rebased #

Patch Set 4 : Rebased #

Patch Set 5 : Rebased #

Patch Set 6 : Move forgotten timer too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -11 lines) Patch
M third_party/WebKit/Source/core/html/HTMLMediaElement.h View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 2 chunks +30 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/Timer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (48 generated)
altimin
PTAL
4 years ago (2016-12-06 19:06:01 UTC) #4
haraken
https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/platform/Timer.h File third_party/WebKit/Source/platform/Timer.h (right): https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/platform/Timer.h#newcode183 third_party/WebKit/Source/platform/Timer.h:183: // DEPRECATED: Use TaskRunnerHelper::get with TaskType::Unthrottled. dcheng@ introduced UnthrottledThreadTimer. ...
4 years ago (2016-12-06 23:45:28 UTC) #9
dcheng
https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/platform/Timer.h File third_party/WebKit/Source/platform/Timer.h (right): https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/platform/Timer.h#newcode185 third_party/WebKit/Source/platform/Timer.h:185: class UnthrottledThreadTimer : public TaskRunnerTimer<TimerFiredClass> { On 2016/12/06 23:45:28, ...
4 years ago (2016-12-07 03:15:49 UTC) #10
haraken
On 2016/12/07 03:15:49, dcheng wrote: > https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/platform/Timer.h > File third_party/WebKit/Source/platform/Timer.h (right): > > https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/platform/Timer.h#newcode185 > ...
4 years ago (2016-12-07 03:57:37 UTC) #11
mlamouri (slow - plz ping)
Assuming the behaviour stays the same, HTMLMediaElement lgtm
4 years ago (2016-12-07 14:47:02 UTC) #12
altimin
On 2016/12/07 14:47:02, mlamouri wrote: > Assuming the behaviour stays the same, HTMLMediaElement lgtm I ...
4 years ago (2016-12-07 14:52:30 UTC) #13
dcheng
On 2016/12/07 14:52:30, altimin wrote: > On 2016/12/07 14:47:02, mlamouri wrote: > > Assuming the ...
4 years ago (2016-12-07 18:25:38 UTC) #14
altimin
On 2016/12/07 18:25:38, dcheng wrote: > On 2016/12/07 14:52:30, altimin wrote: > > On 2016/12/07 ...
4 years ago (2016-12-07 18:52:26 UTC) #15
dcheng
LGTM Just so I understand correctly, even without moving the timers, this will still work ...
4 years ago (2016-12-08 08:15:40 UTC) #16
haraken
LGTM
4 years ago (2016-12-08 08:22:04 UTC) #17
mlamouri (slow - plz ping)
On 2016/12/07 at 14:52:30, altimin wrote: > On 2016/12/07 14:47:02, mlamouri wrote: > > Assuming ...
4 years ago (2016-12-08 14:11:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2554113002/100001
4 years ago (2016-12-21 14:51:23 UTC) #57
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-21 14:56:04 UTC) #60
commit-bot: I haz the power
4 years ago (2016-12-21 14:58:26 UTC) #62
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/942fe9a2a22a011760ab7a278f90cadd36872b84
Cr-Commit-Position: refs/heads/master@{#440099}

Powered by Google App Engine
This is Rietveld 408576698