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

Issue 2713613002: Convert HTMLMediaElement timers to MediaElementEvent per-frame. (Closed)

Created:
3 years, 10 months ago by joelhockey
Modified:
3 years, 9 months ago
CC:
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, Srirama
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert HTMLMediaElement timers to MediaElementEvent per-frame. Include m_deferredLoadTimer in didMoveToNewDocument. My reading of the spec suggests that all of these timers should use MediaElementEvent task source. I am quite sure about the load and progress timers. The viewport-related timers may be different, but I see no reason not to have them use the same task source as the other timers. https://html.spec.whatwg.org/multipage/embedded-content.html#media-elements "Except where otherwise explicitly specified, the task source for all the tasks queued in this section and its subsections is the media element event task source of the media element in question." BUG=624694

Patch Set 1 #

Total comments: 2

Patch Set 2 : merge #

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

Messages

Total messages: 15 (8 generated)
joelhockey
haraken, PTAL. altimin, dcheng, mlamouri, I see you were involved in the previous CL to ...
3 years, 10 months ago (2017-02-22 10:12:18 UTC) #4
haraken
First of all, this CL is making multiple non-trivial changes in one go. Let's split ...
3 years, 10 months ago (2017-02-22 10:27:42 UTC) #5
joelhockey
On 2017/02/22 at 10:27:42, haraken wrote: > First of all, this CL is making multiple ...
3 years, 10 months ago (2017-02-22 10:49:29 UTC) #7
mlamouri (slow - plz ping)
https://codereview.chromium.org/2713613002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/2713613002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode524 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:524: TaskRunnerHelper::get(TaskType::MediaElementEvent, &document())); This is a change in behaviour, right? ...
3 years, 10 months ago (2017-02-22 12:10:04 UTC) #10
altimin
On 2017/02/22 10:27:42, haraken wrote: > First of all, this CL is making multiple non-trivial ...
3 years, 10 months ago (2017-02-22 12:31:55 UTC) #11
altimin
On 2017/02/22 12:10:04, mlamouri wrote: > https://codereview.chromium.org/2713613002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp > File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/2713613002/diff/1/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode524 > ...
3 years, 10 months ago (2017-02-22 12:33:47 UTC) #12
joelhockey
3 years, 9 months ago (2017-02-28 09:13:00 UTC) #15
After splitting the CL out, it now only has changes to convert all timers from
Unthrottled to MediaElementEvent.
After reading the spec, I did originally think that MediaElementEvent would be
the correct task source, but I think I might just close this CL since there
doesn't seem to be easy agreement about what task type to use.

Powered by Google App Engine
This is Rietveld 408576698