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

Issue 7461016: Replace VideoDecoder::media_format() with significantly simpler width()/height() methods. (Closed)

Created:
9 years, 5 months ago by scherkus (not reviewing)
Modified:
9 years, 5 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, sjl, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, pam+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), darin-cc_chromium.org, scherkus (not reviewing)
Visibility:
Public.

Description

Replace VideoDecoder::media_format() with significantly simpler width()/height() methods. Clients don't really care about the surface type during initialization, hence its removal. Also removed a few methods from VideoRendererBase that didn't need to be there. Technically it's possible to do without width()/height() methods entirely, forcing clients to inspect VideoFrame objects for changes in dimensions and react accordingly, but that'll be a change for a different day. BUG=28206 TEST=media_unittests, unit_tests, layout_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93278

Patch Set 1 #

Total comments: 8

Patch Set 2 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -164 lines) Patch
M content/renderer/media/rtc_video_decoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_video_decoder.cc View 6 chunks +9 lines, -14 lines 0 comments Download
M content/renderer/media/rtc_video_decoder_unittest.cc View 3 chunks +5 lines, -16 lines 0 comments Download
M media/base/filters.h View 1 chunk +9 lines, -2 lines 0 comments Download
M media/base/mock_filters.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/base/video_decoder_config.h View 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 4 chunks +10 lines, -12 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M media/filters/video_renderer_base.h View 4 chunks +1 line, -20 lines 0 comments Download
M media/filters/video_renderer_base.cc View 4 chunks +2 lines, -36 lines 0 comments Download
M media/filters/video_renderer_base_unittest.cc View 1 3 chunks +4 lines, -30 lines 0 comments Download
M media/tools/player_wtl/wtl_renderer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M media/tools/player_wtl/wtl_renderer.cc View 2 chunks +3 lines, -9 lines 0 comments Download
M webkit/glue/media/video_renderer_impl.cc View 1 chunk +6 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scherkus (not reviewing)
wjia: RTC changes fischman: everything else
9 years, 5 months ago (2011-07-20 03:14:08 UTC) #1
Ami GONE FROM CHROMIUM
LGTM mod nits http://codereview.chromium.org/7461016/diff/1/content/renderer/media/rtc_video_decoder.cc File content/renderer/media/rtc_video_decoder.cc (right): http://codereview.chromium.org/7461016/diff/1/content/renderer/media/rtc_video_decoder.cc#newcode160 content/renderer/media/rtc_video_decoder.cc:160: width_ = width; Before this CL, ...
9 years, 5 months ago (2011-07-20 16:30:22 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/7461016/diff/1/content/renderer/media/rtc_video_decoder.cc File content/renderer/media/rtc_video_decoder.cc (right): http://codereview.chromium.org/7461016/diff/1/content/renderer/media/rtc_video_decoder.cc#newcode160 content/renderer/media/rtc_video_decoder.cc:160: width_ = width; On 2011/07/20 16:30:22, Ami Fischman wrote: ...
9 years, 5 months ago (2011-07-20 16:51:52 UTC) #3
Ami GONE FROM CHROMIUM
Like I said, LGTM. http://codereview.chromium.org/7461016/diff/1/content/renderer/media/rtc_video_decoder.cc File content/renderer/media/rtc_video_decoder.cc (right): http://codereview.chromium.org/7461016/diff/1/content/renderer/media/rtc_video_decoder.cc#newcode160 content/renderer/media/rtc_video_decoder.cc:160: width_ = width; On 2011/07/20 ...
9 years, 5 months ago (2011-07-20 16:56:25 UTC) #4
wjia(left Chromium)
9 years, 5 months ago (2011-07-20 16:58:46 UTC) #5
lgtm. are you going to land this soon? I have a pending patch using
media_format.

Powered by Google App Engine
This is Rietveld 408576698