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

Issue 913133003: Move text track active list management to CueTimeline (Closed)

Created:
5 years, 10 months ago by fs
Modified:
5 years, 10 months ago
CC:
blink-reviews, nessy, gasubic, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, vcarbune.chromium
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move text track active list management to CueTimeline This CL introduces a new class CueTimeline and moves the code used for managing the list of active cues, the interval tree and other state used when rendering cues from HTMLMediaElement to it. For the most part this is code movement. The exception is that CueTimeline::updateActiveCues check for the presence of a WebMediaPlayer rather than a MediaPlayer when computing the new list of active cues. Methods/data are rename to remove [Tt]extTrack where appropriate. Some adjustments are done to visibility/exposure of data on HTMLMediaElement to allow the state to be queried when needed. BUG=321654 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190298

Patch Set 1 #

Patch Set 2 : Bandaid. #

Patch Set 3 : Rename to CueTimeline. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -420 lines) Patch
M Source/core/core.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 12 chunks +5 lines, -42 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 19 chunks +20 lines, -361 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 2 chunks +3 lines, -1 line 0 comments Download
A Source/core/html/track/CueTimeline.h View 1 2 1 chunk +96 lines, -0 lines 0 comments Download
A Source/core/html/track/CueTimeline.cpp View 1 2 1 chunk +351 lines, -0 lines 1 comment Download
M Source/core/html/track/LoadableTextTrack.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/html/track/TextTrack.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/track/TextTrack.cpp View 1 2 9 chunks +20 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
fs
> TextTrackRenderer::updateActiveCues does not check for the presence of a MediaPlayer Luckily there was a ...
5 years, 10 months ago (2015-02-11 13:55:51 UTC) #2
fs
On 2015/02/11 13:55:51, fs wrote: > > TextTrackRenderer::updateActiveCues does not check for the presence of ...
5 years, 10 months ago (2015-02-11 17:33:56 UTC) #3
philipj_slow
> Some adjustments are done to visibility/exposure of data on > HTMLMediaElement to allow the ...
5 years, 10 months ago (2015-02-11 17:52:09 UTC) #4
fs
On 2015/02/11 17:52:09, philipj_UTC7 wrote: > > Some adjustments are done to visibility/exposure of data ...
5 years, 10 months ago (2015-02-12 09:36:20 UTC) #5
philipj_slow
On 2015/02/12 09:36:20, fs wrote: > On 2015/02/11 17:52:09, philipj_UTC7 wrote: > > > Some ...
5 years, 10 months ago (2015-02-12 10:03:52 UTC) #6
fs
Renamed to CueTimeline. On 2015/02/12 10:03:52, philipj_UTC7 wrote: ... > Ah, more good stuff to ...
5 years, 10 months ago (2015-02-12 10:21:19 UTC) #7
fs
Ping philipj.
5 years, 10 months ago (2015-02-16 15:06:15 UTC) #8
philipj_slow
lgtm
5 years, 10 months ago (2015-02-16 17:22:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/913133003/40001
5 years, 10 months ago (2015-02-17 08:38:57 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190298
5 years, 10 months ago (2015-02-17 08:41:52 UTC) #12
brucedawson
https://codereview.chromium.org/913133003/diff/40001/Source/core/html/track/CueTimeline.cpp File Source/core/html/track/CueTimeline.cpp (right): https://codereview.chromium.org/913133003/diff/40001/Source/core/html/track/CueTimeline.cpp#newcode306 Source/core/html/track/CueTimeline.cpp:306: RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::cuechange); The declaration of 'event' shadows ...
5 years, 10 months ago (2015-02-18 21:06:40 UTC) #14
fs
On 2015/02/18 21:06:40, brucedawson wrote: > https://codereview.chromium.org/913133003/diff/40001/Source/core/html/track/CueTimeline.cpp > File Source/core/html/track/CueTimeline.cpp (right): > > https://codereview.chromium.org/913133003/diff/40001/Source/core/html/track/CueTimeline.cpp#newcode306 > ...
5 years, 10 months ago (2015-02-19 09:26:38 UTC) #15
fs
5 years, 10 months ago (2015-02-19 16:28:56 UTC) #16
Message was sent while issue was closed.
On 2015/02/19 09:26:38, fs wrote:
> On 2015/02/18 21:06:40, brucedawson wrote:
> >
>
https://codereview.chromium.org/913133003/diff/40001/Source/core/html/track/C...
> > File Source/core/html/track/CueTimeline.cpp (right):
> > 
> >
>
https://codereview.chromium.org/913133003/diff/40001/Source/core/html/track/C...
> > Source/core/html/track/CueTimeline.cpp:306: RefPtrWillBeRawPtr<Event> event
=
> > Event::create(EventTypeNames::cuechange);
> > The declaration of 'event' shadows the declaration with the same name/type
on
> > line 298 (eight lines earlier). There is no indication that this is a bug,
but
> > it is potentially confusing. Consider renaming one of the variables?
>  
> Thanks for noticing/notifying =). There's no bug here - there on event created
> and dispatched in the ancestor scope and one in this scope. I'll look into
> eliminating the confusion though.

Done in https://codereview.chromium.org/935423002/

Powered by Google App Engine
This is Rietveld 408576698