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

Issue 1068593003: Introduce TimeSource notifications to the VideoRenderer. (Closed)

Created:
5 years, 8 months ago by DaleCurtis
Modified:
5 years, 8 months ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce TimeSource notifications to the VideoRenderer. The upcoming VideoRenderer needs a way to know when time starts and stops moving; this extends the RendererImpl to let the VideoRenderer know about time changes. I considered introducing a TimeSourceDependent observer-like interface for TimeSources, but it ended up being way more complicated. I also considered a proxy TimeSource, but again it was way more complicated. The approach here is quite simple and small in complexity. BUG=439548 TEST=new unittest. Committed: https://crrev.com/5cc4fb592bd377ff503003a781f5fa9f68a4e8cc Cr-Commit-Position: refs/heads/master@{#324172}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Single call. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -0 lines) Patch
M media/base/mock_filters.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/base/video_renderer.h View 1 1 chunk +5 lines, -0 lines 2 comments Download
M media/renderers/renderer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 4 chunks +15 lines, -0 lines 2 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M media/renderers/video_renderer_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
DaleCurtis
The approach we discussed ultimately added a bunch of complexity that didn't seem worthwhile; this ...
5 years, 8 months ago (2015-04-07 00:25:54 UTC) #2
xhwang
https://codereview.chromium.org/1068593003/diff/1/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (right): https://codereview.chromium.org/1068593003/diff/1/media/renderers/renderer_impl.cc#newcode190 media/renderers/renderer_impl.cc:190: video_renderer_->OnTimeStopped(); This will definitely work. I just wonder whether ...
5 years, 8 months ago (2015-04-07 06:13:08 UTC) #3
DaleCurtis
https://codereview.chromium.org/1068593003/diff/1/media/renderers/renderer_impl.cc File media/renderers/renderer_impl.cc (right): https://codereview.chromium.org/1068593003/diff/1/media/renderers/renderer_impl.cc#newcode190 media/renderers/renderer_impl.cc:190: video_renderer_->OnTimeStopped(); On 2015/04/07 06:13:08, xhwang wrote: > This will ...
5 years, 8 months ago (2015-04-07 16:51:40 UTC) #4
DaleCurtis
PTAL. Per our offline discussion I've switched to a single method. I didn't like the ...
5 years, 8 months ago (2015-04-07 19:55:17 UTC) #5
xhwang
lgtm https://codereview.chromium.org/1068593003/diff/20001/media/base/video_renderer.h File media/base/video_renderer.h (right): https://codereview.chromium.org/1068593003/diff/20001/media/base/video_renderer.h#newcode87 media/base/video_renderer.h:87: // |time_progressing| will be false. Add a comment ...
5 years, 8 months ago (2015-04-07 23:57:50 UTC) #6
DaleCurtis
https://codereview.chromium.org/1068593003/diff/20001/media/base/video_renderer.h File media/base/video_renderer.h (right): https://codereview.chromium.org/1068593003/diff/20001/media/base/video_renderer.h#newcode87 media/base/video_renderer.h:87: // |time_progressing| will be false. On 2015/04/07 23:57:49, xhwang ...
5 years, 8 months ago (2015-04-08 00:04:32 UTC) #7
DaleCurtis
CQ'ing, please uncheck if those comments were hard objections.
5 years, 8 months ago (2015-04-08 00:04:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1068593003/20001
5 years, 8 months ago (2015-04-08 00:05:24 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-08 01:48:07 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 01:48:57 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5cc4fb592bd377ff503003a781f5fa9f68a4e8cc
Cr-Commit-Position: refs/heads/master@{#324172}

Powered by Google App Engine
This is Rietveld 408576698