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

Issue 151103005: TextRenderer only pushes new cues downstream (Closed)

Created:
6 years, 10 months ago by Matthew Heaney (Chromium)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

TextRenderer only pushes new cues downstream The TextTrack subsystem in Blink unconditionally satisfies a request to add a new text cue to the text track cue list, relying on the upstream demuxers to filter out cues that have already been added to that list. The TextRenderer now manages a map of time range objects, to keep track of which cues (based on their start times) have already been pushed downstream prior to the current seek. BUG=230708 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249845

Patch Set 1 #

Patch Set 2 : added text ranges utility and unit test #

Total comments: 28

Patch Set 3 : incorporate aaron's comments of 2014/02/05 #

Total comments: 16

Patch Set 4 : incorporate aaron's comments 2014/02/06 #

Total comments: 10

Patch Set 5 : incorporate aaron's comments of 2014/02/07 #

Patch Set 6 : fix style errors #

Patch Set 7 : fix signed/unsigned int compare #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -5 lines) Patch
A media/base/text_ranges.h View 1 2 3 4 5 1 chunk +95 lines, -0 lines 0 comments Download
A media/base/text_ranges.cc View 1 2 3 4 5 1 chunk +141 lines, -0 lines 0 comments Download
A media/base/text_ranges_unittest.cc View 1 2 3 4 5 6 1 chunk +147 lines, -0 lines 0 comments Download
M media/base/text_renderer.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M media/base/text_renderer.cc View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M media/media.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Matthew Heaney (Chromium)
I modified the TextRenderer to keep track of text cues, using Aaron's suggested implementation approach. ...
6 years, 10 months ago (2014-02-04 02:07:09 UTC) #1
acolwell GONE FROM CHROMIUM
This looks reasonable after a quick skim. Please put the range tracking logic in a ...
6 years, 10 months ago (2014-02-04 18:00:47 UTC) #2
Matthew Heaney (Chromium)
Factored out text ranges functionality into its own utility module, and added associated unit test.
6 years, 10 months ago (2014-02-05 01:25:21 UTC) #3
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/151103005/diff/50001/media/base/text_ranges.cc File media/base/text_ranges.cc (right): https://codereview.chromium.org/151103005/diff/50001/media/base/text_ranges.cc#newcode20 media/base/text_ranges.cc:20: typedef RangeMap::iterator Itr; nit: Please just use the full ...
6 years, 10 months ago (2014-02-05 19:09:36 UTC) #4
Matthew Heaney (Chromium)
Incorporated Aaron's comments (2014/02/05, Wed). https://codereview.chromium.org/151103005/diff/50001/media/base/text_ranges.cc File media/base/text_ranges.cc (right): https://codereview.chromium.org/151103005/diff/50001/media/base/text_ranges.cc#newcode20 media/base/text_ranges.cc:20: typedef RangeMap::iterator Itr; On ...
6 years, 10 months ago (2014-02-06 02:25:47 UTC) #5
acolwell GONE FROM CHROMIUM
Getting pretty close. Just a few relatively minor comments. https://codereview.chromium.org/151103005/diff/120001/media/base/text_ranges.cc File media/base/text_ranges.cc (right): https://codereview.chromium.org/151103005/diff/120001/media/base/text_ranges.cc#newcode65 media/base/text_ranges.cc:65: ...
6 years, 10 months ago (2014-02-07 01:44:18 UTC) #6
Matthew Heaney (Chromium)
Incorporated Aaron's comments of 2014/02/06. https://codereview.chromium.org/151103005/diff/120001/media/base/text_ranges.cc File media/base/text_ranges.cc (right): https://codereview.chromium.org/151103005/diff/120001/media/base/text_ranges.cc#newcode65 media/base/text_ranges.cc:65: // We have walked ...
6 years, 10 months ago (2014-02-07 03:24:35 UTC) #7
acolwell GONE FROM CHROMIUM
lgtm % nits. Thanks for working on this. https://codereview.chromium.org/151103005/diff/160001/media/base/text_ranges.cc File media/base/text_ranges.cc (right): https://codereview.chromium.org/151103005/diff/160001/media/base/text_ranges.cc#newcode65 media/base/text_ranges.cc:65: // ...
6 years, 10 months ago (2014-02-07 18:30:51 UTC) #8
Matthew Heaney (Chromium)
Incorporated Aaron's comments of 2014/02/07. https://codereview.chromium.org/151103005/diff/160001/media/base/text_ranges.cc File media/base/text_ranges.cc (right): https://codereview.chromium.org/151103005/diff/160001/media/base/text_ranges.cc#newcode65 media/base/text_ranges.cc:65: // We have walked ...
6 years, 10 months ago (2014-02-07 18:49:07 UTC) #9
Matthew Heaney (Chromium)
The CQ bit was checked by matthewjheaney@chromium.org
6 years, 10 months ago (2014-02-07 18:49:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewjheaney@chromium.org/151103005/230001
6 years, 10 months ago (2014-02-07 18:50:01 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 19:15:00 UTC) #12
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=223542
6 years, 10 months ago (2014-02-07 19:15:01 UTC) #13
Matthew Heaney (Chromium)
The CQ bit was checked by matthewjheaney@chromium.org
6 years, 10 months ago (2014-02-07 20:01:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewjheaney@chromium.org/151103005/410002
6 years, 10 months ago (2014-02-07 20:04:14 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-07 20:26:48 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=223586
6 years, 10 months ago (2014-02-07 20:26:48 UTC) #17
Matthew Heaney (Chromium)
The CQ bit was checked by matthewjheaney@chromium.org
6 years, 10 months ago (2014-02-07 20:33:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewjheaney@chromium.org/151103005/650001
6 years, 10 months ago (2014-02-07 20:34:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/matthewjheaney@chromium.org/151103005/650001
6 years, 10 months ago (2014-02-07 22:20:50 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 23:16:13 UTC) #21
Message was sent while issue was closed.
Change committed as 249845

Powered by Google App Engine
This is Rietveld 408576698