|
|
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. |
DescriptionDeprecate 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 #
Messages
Total messages: 62 (48 generated)
Description was changed from ========== 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. R=haraken@chromium.org,mlamouri@chromium.org BUG=624696 ========== to ========== 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. R=haraken@chromium.org,mlamouri@chromium.org BUG=624696 ==========
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
PTAL
Description was changed from ========== 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. R=haraken@chromium.org,mlamouri@chromium.org BUG=624696 ========== to ========== 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 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
haraken@chromium.org changed reviewers: + dcheng@chromium.org
https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... File third_party/WebKit/Source/platform/Timer.h (right): https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... third_party/WebKit/Source/platform/Timer.h:183: // DEPRECATED: Use TaskRunnerHelper::get with TaskType::Unthrottled. dcheng@ introduced UnthrottledThreadTimer. What's your plan about it? https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... third_party/WebKit/Source/platform/Timer.h:185: class UnthrottledThreadTimer : public TaskRunnerTimer<TimerFiredClass> { dcheng@ introduced UnthrottledThreadTimer. What's your plan about this?
https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... File third_party/WebKit/Source/platform/Timer.h (right): https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... third_party/WebKit/Source/platform/Timer.h:185: class UnthrottledThreadTimer : public TaskRunnerTimer<TimerFiredClass> { On 2016/12/06 23:45:28, haraken wrote: > > dcheng@ introduced UnthrottledThreadTimer. What's your plan about this? It wasn't clear to me if we'd have thing that needed to be unthrottled thread timers. I was going to revisit this once I have landed more CLs for the timer changes. I don't have a strong feeling about marking/not marking this as deprecated; it certainly seems reasonable to encourage the use of per-frame timers where possible, and I expect the fate of UnthrottledThreadTimer will become clearer near the end of December.
On 2016/12/07 03:15:49, dcheng wrote: > https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... > File third_party/WebKit/Source/platform/Timer.h (right): > > https://codereview.chromium.org/2554113002/diff/1/third_party/WebKit/Source/p... > third_party/WebKit/Source/platform/Timer.h:185: class UnthrottledThreadTimer : > public TaskRunnerTimer<TimerFiredClass> { > On 2016/12/06 23:45:28, haraken wrote: > > > > dcheng@ introduced UnthrottledThreadTimer. What's your plan about this? > > It wasn't clear to me if we'd have thing that needed to be unthrottled thread > timers. I was going to revisit this once I have landed more CLs for the timer > changes. > > I don't have a strong feeling about marking/not marking this as deprecated; it > certainly seems reasonable to encourage the use of per-frame timers where > possible, and I expect the fate of UnthrottledThreadTimer will become clearer > near the end of December. I'll defer this review to you :)
Assuming the behaviour stays the same, HTMLMediaElement lgtm
On 2016/12/07 14:47:02, mlamouri wrote: > Assuming the behaviour stays the same, HTMLMediaElement lgtm I just found out that there is a problem when HTMLMediaElement is moved between different documents. The plan here is to support moving timers between different TaskRunners (in a different patch) and update HTMLMediaElement::didMoveToNewDocument. Mounir, how does it sound to you?
On 2016/12/07 14:52:30, altimin wrote: > On 2016/12/07 14:47:02, mlamouri wrote: > > Assuming the behaviour stays the same, HTMLMediaElement lgtm > > I just found out that there is a problem when HTMLMediaElement is moved between > different documents. > The plan here is to support moving timers between different TaskRunners (in a > different patch) and update > HTMLMediaElement::didMoveToNewDocument. > > Mounir, how does it sound to you? OK, so I should defer reviewing this until we can move timers between task runners?
On 2016/12/07 18:25:38, dcheng wrote: > On 2016/12/07 14:52:30, altimin wrote: > > On 2016/12/07 14:47:02, mlamouri wrote: > > > Assuming the behaviour stays the same, HTMLMediaElement lgtm > > > > I just found out that there is a problem when HTMLMediaElement is moved > between > > different documents. > > The plan here is to support moving timers between different TaskRunners (in a > > different patch) and update > > HTMLMediaElement::didMoveToNewDocument. > > > > Mounir, how does it sound to you? > > OK, so I should defer reviewing this until we can move timers between task > runners? I think that you can take a look at it now, the most important question is if you agree with deprecation of UnthrottledThreadTimer. The timer movement thing is a minor technical thing (patch for it is in https://codereview.chromium.org/2556053004/), but you can review it later, if you think that it's the best way.
LGTM Just so I understand correctly, even without moving the timers, this will still work correctly: it just means a media element might conceptually be in the wrong task queue, right?
LGTM
On 2016/12/07 at 14:52:30, altimin wrote: > On 2016/12/07 14:47:02, mlamouri wrote: > > Assuming the behaviour stays the same, HTMLMediaElement lgtm > > I just found out that there is a problem when HTMLMediaElement is moved between different documents. > The plan here is to support moving timers between different TaskRunners (in a different patch) and update > HTMLMediaElement::didMoveToNewDocument. > > Mounir, how does it sound to you? sgtm - can you send me the CL that does the follow-up?
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by altimin@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by altimin@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from haraken@chromium.org, dcheng@chromium.org, mlamouri@chromium.org Link to the patchset: https://codereview.chromium.org/2554113002/#ps100001 (title: "Move forgotten timer too")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1482331866426210, "parent_rev": "a1fabe49844819e3dcea6340ad4000c99dae8c94", "commit_rev": "7471647089534dd5e7bc2c8ccce79d51bfb8f5bd"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 Review-Url: https://codereview.chromium.org/2554113002 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== 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 Review-Url: https://codereview.chromium.org/2554113002 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/942fe9a2a22a011760ab7a278f90cadd36872b84 Cr-Commit-Position: refs/heads/master@{#440099} |