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

Issue 870693002: Require Renderer::Initialize() to return a status code via callback. (Closed)

Created:
5 years, 11 months ago by DaleCurtis
Modified:
5 years, 11 months ago
Reviewers:
xhwang
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Require Renderer::Initialize() to return a status code via callback. Using OnError() to deliver status codes during Initialize() complicates upstream state paths, so require clients to return status via the initialization callback provided instead of via the error callback. BUG=450764 TEST=media_unittests, mojo://media_test Committed: https://crrev.com/470461169311f3336e430fb91436366fa916af68 Cr-Commit-Position: refs/heads/master@{#312958}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase. Fix comments. #

Total comments: 4

Patch Set 3 : Comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -63 lines) Patch
M media/base/audio_renderer.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M media/base/mock_filters.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/pipeline.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/pipeline.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 4 chunks +4 lines, -12 lines 0 comments Download
M media/base/renderer.h View 2 chunks +7 lines, -6 lines 0 comments Download
M media/base/video_renderer.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M media/filters/renderer_impl.h View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M media/filters/renderer_impl.cc View 1 2 6 chunks +25 lines, -19 lines 0 comments Download
M media/filters/renderer_impl_unittest.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
DaleCurtis
5 years, 11 months ago (2015-01-22 19:52:55 UTC) #2
xhwang
looking good in general. I only have a few comments. https://codereview.chromium.org/870693002/diff/1/media/base/renderer.h File media/base/renderer.h (right): https://codereview.chromium.org/870693002/diff/1/media/base/renderer.h#newcode45 ...
5 years, 11 months ago (2015-01-23 00:22:01 UTC) #3
DaleCurtis
https://codereview.chromium.org/870693002/diff/1/media/base/renderer.h File media/base/renderer.h (right): https://codereview.chromium.org/870693002/diff/1/media/base/renderer.h#newcode45 media/base/renderer.h:45: // - |error_cb|: Executed if any error was encountered ...
5 years, 11 months ago (2015-01-23 20:31:21 UTC) #4
xhwang
LGTM % nits https://codereview.chromium.org/870693002/diff/20001/media/filters/renderer_impl.cc File media/filters/renderer_impl.cc (right): https://codereview.chromium.org/870693002/diff/20001/media/filters/renderer_impl.cc#newcode54 media/filters/renderer_impl.cc:54: base::ResetAndReturn(&init_cb_).Run(PIPELINE_ERROR_ABORT); I don't think we could ...
5 years, 11 months ago (2015-01-23 21:03:08 UTC) #5
DaleCurtis
https://codereview.chromium.org/870693002/diff/20001/media/filters/renderer_impl.cc File media/filters/renderer_impl.cc (right): https://codereview.chromium.org/870693002/diff/20001/media/filters/renderer_impl.cc#newcode54 media/filters/renderer_impl.cc:54: base::ResetAndReturn(&init_cb_).Run(PIPELINE_ERROR_ABORT); On 2015/01/23 21:03:07, xhwang wrote: > I don't ...
5 years, 11 months ago (2015-01-23 21:19:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870693002/40001
5 years, 11 months ago (2015-01-23 21:51:15 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-23 22:58:51 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 22:59:50 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/470461169311f3336e430fb91436366fa916af68
Cr-Commit-Position: refs/heads/master@{#312958}

Powered by Google App Engine
This is Rietveld 408576698