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

Issue 1094783002: Switch to double for time calculations using playback rate. (Closed)

Created:
5 years, 8 months ago by a.berwal
Modified:
5 years, 8 months ago
Reviewers:
lcwu1, xhwang, DaleCurtis, gunsch
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

Switch to double for time calculations using playback rate. Multiplying an int64 against a float causes the float type to prevail which does not have enough precision for accurate time value computations. BUG=475964 TBR=lcwu1, gunsch Committed: https://crrev.com/338bf0048faab4c20b0767620c524b9636c31a04 Cr-Commit-Position: refs/heads/master@{#326269}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Incorporating review comments(replacing all float playback_rate to double.) #

Total comments: 3

Patch Set 3 : Incorporating Review Comments #

Patch Set 4 : build fixes #

Patch Set 5 : Making changes at chromecast side to fix trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -123 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/media/cma_message_filter_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/media/cma_message_filter_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/media/media_pipeline_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/media/media_pipeline_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/common/media/cma_messages.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/base/switching_media_renderer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/base/switching_media_renderer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/filters/cma_renderer.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/media/cma/filters/cma_renderer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/media/cma/pipeline/media_pipeline_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/renderer/media/media_pipeline_proxy.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/renderer/media/media_pipeline_proxy.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M media/base/mock_filters.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M media/base/pipeline.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M media/base/renderer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/time_delta_interpolator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/time_delta_interpolator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/time_delta_interpolator_unittest.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M media/base/time_source.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/wall_clock_time_source.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/wall_clock_time_source.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/buffered_data_source.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/blink/buffered_data_source.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M media/blink/buffered_data_source_unittest.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M media/blink/buffered_resource_loader.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M media/blink/buffered_resource_loader.cc View 1 4 chunks +7 lines, -7 lines 0 comments Download
M media/blink/buffered_resource_loader_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/audio_clock_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_renderer_algorithm.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M media/filters/audio_renderer_algorithm.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M media/filters/audio_renderer_algorithm_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M media/mojo/interfaces/media_renderer.mojom View 1 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M media/renderers/renderer_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
DaleCurtis
Thanks for doing this! https://codereview.chromium.org/1094783002/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/1094783002/diff/1/AUTHORS#newcode22 AUTHORS:22: Ajay Berwal <a.berwal@samsung.com> Doesn't look ...
5 years, 8 months ago (2015-04-17 18:21:37 UTC) #3
a.berwal
https://codereview.chromium.org/1094783002/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/1094783002/diff/1/AUTHORS#newcode22 AUTHORS:22: Ajay Berwal <a.berwal@samsung.com> On 2015/04/17 18:21:37, DaleCurtis wrote: > ...
5 years, 8 months ago (2015-04-19 03:53:55 UTC) #4
xhwang
We have more places in media code that use float for the playback rate. We ...
5 years, 8 months ago (2015-04-20 21:47:07 UTC) #5
a.berwal
On 2015/04/20 21:47:07, xhwang wrote: > We have more places in media code that use ...
5 years, 8 months ago (2015-04-21 04:50:35 UTC) #6
DaleCurtis
Thanks for doing this. looks good % your CLA agreement. https://codereview.chromium.org/1094783002/diff/20001/AUTHORS File AUTHORS (right): https://codereview.chromium.org/1094783002/diff/20001/AUTHORS#newcode22 ...
5 years, 8 months ago (2015-04-22 00:52:59 UTC) #7
a.berwal
On 2015/04/22 00:52:59, DaleCurtis wrote: Yes, CLA has been filled.
5 years, 8 months ago (2015-04-22 03:06:15 UTC) #8
DaleCurtis
Awesome, lgtm!
5 years, 8 months ago (2015-04-22 03:29:42 UTC) #9
xhwang
lgtm % tiny nits Thanks for doing this! https://codereview.chromium.org/1094783002/diff/20001/media/base/pipeline.h File media/base/pipeline.h (right): https://codereview.chromium.org/1094783002/diff/20001/media/base/pipeline.h#newcode147 media/base/pipeline.h:147: // ...
5 years, 8 months ago (2015-04-22 04:21:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094783002/40001
5 years, 8 months ago (2015-04-22 05:24:46 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/64099)
5 years, 8 months ago (2015-04-22 05:37:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094783002/60001
5 years, 8 months ago (2015-04-22 08:18:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/3155)
5 years, 8 months ago (2015-04-22 08:52:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094783002/80001
5 years, 8 months ago (2015-04-22 09:46:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/58055)
5 years, 8 months ago (2015-04-22 09:57:37 UTC) #25
a.berwal
@lcwu,@gunsch PTAL converting float playback_rate to double in chromecast/.
5 years, 8 months ago (2015-04-22 10:04:01 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094783002/80001
5 years, 8 months ago (2015-04-22 11:11:00 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-22 11:15:00 UTC) #30
commit-bot: I haz the power
5 years, 8 months ago (2015-04-22 11:15:55 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/338bf0048faab4c20b0767620c524b9636c31a04
Cr-Commit-Position: refs/heads/master@{#326269}

Powered by Google App Engine
This is Rietveld 408576698