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

Issue 2390073003: Use per-frame WebTaskRunner on HTMLMediaElement (Closed)

Created:
4 years, 2 months ago by tzik
Modified:
4 years, 2 months ago
Reviewers:
haraken
CC:
chromium-reviews, nessy, mlamouri+watch-blink_chromium.org, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use per-frame WebTaskRunner on HTMLMediaElement This CL replaces global task runner usage in HTMLMediaElement with per-frame task runner, so that we can control task priorities per subframes. The posted task uses MediaElementEvent task type as specified by the spec: https://html.spec.whatwg.org/multipage/embedded-content.html#media-elements BUG=624696 Committed: https://crrev.com/7828bcebff00de65eeb90abc52e2d1c71e9c35d1 Cr-Commit-Position: refs/heads/master@{#425259}

Patch Set 1 #

Patch Set 2 : Microtask -> MediaElementEvent #

Total comments: 4

Patch Set 3 : s/getExecutionContext()/&document()/ #

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

Messages

Total messages: 24 (16 generated)
tzik
PTAL
4 years, 2 months ago (2016-10-04 08:29:29 UTC) #6
haraken
Hmm, per the spec, shouldn't we use the MediaElement task source? "Except where otherwise explicitly ...
4 years, 2 months ago (2016-10-04 08:47:46 UTC) #7
tzik
On 2016/10/04 08:47:46, haraken wrote: > Hmm, per the spec, shouldn't we use the MediaElement ...
4 years, 2 months ago (2016-10-13 11:37:55 UTC) #13
haraken
LGTM https://codereview.chromium.org/2390073003/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2390073003/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode3884 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:3884: TaskRunnerHelper::get(TaskType::MediaElementEvent, getExecutionContext()) Nit: document() is better than getExecutionContext() ...
4 years, 2 months ago (2016-10-13 13:19:38 UTC) #16
tzik
https://codereview.chromium.org/2390073003/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2390073003/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode3884 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:3884: TaskRunnerHelper::get(TaskType::MediaElementEvent, getExecutionContext()) On 2016/10/13 13:19:38, haraken wrote: > > ...
4 years, 2 months ago (2016-10-14 04:15:22 UTC) #17
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/2390073003/40001
4 years, 2 months ago (2016-10-14 04:15:41 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-14 05:39:39 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 05:41:13 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7828bcebff00de65eeb90abc52e2d1c71e9c35d1
Cr-Commit-Position: refs/heads/master@{#425259}

Powered by Google App Engine
This is Rietveld 408576698