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

Issue 1476523005: Verify returned frames from media::VideoFrame::Wrap*() methods (Closed)

Created:
5 years ago by emircan
Modified:
4 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Verify returned frames from media::VideoFrame::Wrap*() methods BUG=552112 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/8428d41278c107c107736454dc4fdddbd14969bd Cr-Commit-Position: refs/heads/master@{#369705}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Rebase #

Patch Set 3 : posciak@ and miu@ comments. #

Patch Set 4 : LOG in video_Frame and CHECK/return outside. #

Total comments: 2

Patch Set 5 : mcasas@ comment. #

Patch Set 6 : Rebase. #

Total comments: 12

Patch Set 7 : mcasas@ comments. #

Total comments: 8

Patch Set 8 : posciak@ comments. #

Total comments: 14

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Total comments: 2

Patch Set 12 : halliwell@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -89 lines) Patch
M cc/layers/video_layer_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/video_resource_updater_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +41 lines, -32 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chromecast/renderer/media/hole_frame_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +15 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/media/gpu_jpeg_decode_accelerator.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/v4l2_image_processor.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -8 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_video_decoder.cc View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/media/video_track_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 3 4 5 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_video_track_host.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_video_encoder_host.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 13 chunks +19 lines, -15 lines 0 comments Download
M media/capture/content/thread_safe_capture_oracle.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/test/fake_media_source.cc View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M media/filters/vpx_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -2 lines 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -12 lines 0 comments Download

Messages

Total messages: 46 (18 generated)
emircan
PTAL.
5 years ago (2015-11-25 23:15:37 UTC) #4
Pawel Osciak
A few additional locations that seem also not to check: - cc/layers/video_layer_impl_unittest.cc:344 - cc/resources/video_resource_updater_unittest.cc and ...
5 years ago (2015-11-26 01:19:03 UTC) #5
miu
Drive-by comment: IMO, all the DLOG(ERROR) statements should be LOG(DFATAL). The reason is that: 1) ...
5 years ago (2015-11-26 20:28:05 UTC) #6
emircan
Sorry for the delay on this. I was busy with a blink CL, but I ...
5 years ago (2015-12-04 04:20:09 UTC) #8
emircan
I restarted the CL on PS#4 after offline discussions: - We use LOG(DFATAL) instead of ...
5 years ago (2015-12-15 09:52:36 UTC) #13
mcasas
https://codereview.chromium.org/1476523005/diff/180001/cc/resources/video_resource_updater_unittest.cc File cc/resources/video_resource_updater_unittest.cc (right): https://codereview.chromium.org/1476523005/diff/180001/cc/resources/video_resource_updater_unittest.cc#newcode152 cc/resources/video_resource_updater_unittest.cc:152: CHECK(video_frame); Prefer ASSERT_xx() to CHECK (see last entry in ...
5 years ago (2015-12-15 17:14:33 UTC) #16
emircan
https://codereview.chromium.org/1476523005/diff/180001/cc/resources/video_resource_updater_unittest.cc File cc/resources/video_resource_updater_unittest.cc (right): https://codereview.chromium.org/1476523005/diff/180001/cc/resources/video_resource_updater_unittest.cc#newcode152 cc/resources/video_resource_updater_unittest.cc:152: CHECK(video_frame); On 2015/12/15 17:14:33, mcasas wrote: > Prefer ASSERT_xx() ...
5 years ago (2015-12-16 15:57:10 UTC) #17
emircan
Friendly PING.
4 years, 11 months ago (2016-01-09 02:38:41 UTC) #19
mcasas
LGTM % some small comments and a few pedantic nits. https://codereview.chromium.org/1476523005/diff/240001/content/browser/renderer_host/media/video_capture_controller_unittest.cc File content/browser/renderer_host/media/video_capture_controller_unittest.cc (right): https://codereview.chromium.org/1476523005/diff/240001/content/browser/renderer_host/media/video_capture_controller_unittest.cc#newcode131 ...
4 years, 11 months ago (2016-01-12 17:46:16 UTC) #20
Pawel Osciak
I think in some places outside of content/common/gpu/media we don't trigger an error, just returning ...
4 years, 11 months ago (2016-01-13 07:53:25 UTC) #22
emircan
https://codereview.chromium.org/1476523005/diff/240001/content/browser/renderer_host/media/video_capture_controller_unittest.cc File content/browser/renderer_host/media/video_capture_controller_unittest.cc (right): https://codereview.chromium.org/1476523005/diff/240001/content/browser/renderer_host/media/video_capture_controller_unittest.cc#newcode131 content/browser/renderer_host/media/video_capture_controller_unittest.cc:131: EXPECT_NE(video_frame.get(), nullptr); On 2016/01/12 17:46:16, mcasas wrote: > nit: ...
4 years, 11 months ago (2016-01-14 23:07:41 UTC) #23
emircan
https://codereview.chromium.org/1476523005/diff/280001/content/common/gpu/media/v4l2_image_processor.cc File content/common/gpu/media/v4l2_image_processor.cc (right): https://codereview.chromium.org/1476523005/diff/280001/content/common/gpu/media/v4l2_image_processor.cc#newcode565 content/common/gpu/media/v4l2_image_processor.cc:565: continue; On 2016/01/13 07:53:25, Pawel Osciak wrote: > We ...
4 years, 11 months ago (2016-01-14 23:13:54 UTC) #24
emircan
aelias@chromium.org: Please review changes in cc/* sievers@chromium.org: Please review changes in content/renderer/pepper/* dalecurtis@chromium.org: Please review ...
4 years, 11 months ago (2016-01-14 23:19:38 UTC) #26
aelias_OOO_until_Jul13
cc/ test changes lgtm
4 years, 11 months ago (2016-01-14 23:21:22 UTC) #27
DaleCurtis
lgtm % consistency nits. https://codereview.chromium.org/1476523005/diff/300001/cc/resources/video_resource_updater_unittest.cc File cc/resources/video_resource_updater_unittest.cc (right): https://codereview.chromium.org/1476523005/diff/300001/cc/resources/video_resource_updater_unittest.cc#newcode103 cc/resources/video_resource_updater_unittest.cc:103: EXPECT_NE(nullptr, video_frame.get()); EXPECT_TRUE like you've ...
4 years, 11 months ago (2016-01-14 23:27:05 UTC) #28
no sievers
On 2016/01/14 23:19:38, emircan wrote: > mailto:aelias@chromium.org: Please review changes in cc/* > > mailto:sievers@chromium.org: ...
4 years, 11 months ago (2016-01-14 23:42:04 UTC) #29
emircan
Thanks. https://codereview.chromium.org/1476523005/diff/300001/cc/resources/video_resource_updater_unittest.cc File cc/resources/video_resource_updater_unittest.cc (right): https://codereview.chromium.org/1476523005/diff/300001/cc/resources/video_resource_updater_unittest.cc#newcode103 cc/resources/video_resource_updater_unittest.cc:103: EXPECT_NE(nullptr, video_frame.get()); On 2016/01/14 23:27:04, DaleCurtis wrote: > ...
4 years, 11 months ago (2016-01-15 00:28:28 UTC) #30
emircan
lcwu@chromium.org: Please review changes in chromecast/renderer/media/hole_frame_factory.cc
4 years, 11 months ago (2016-01-15 00:29:39 UTC) #32
Pawel Osciak
https://chromiumcodereview.appspot.com/1476523005/diff/340001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://chromiumcodereview.appspot.com/1476523005/diff/340001/media/filters/vpx_video_decoder.cc#newcode606 media/filters/vpx_video_decoder.cc:606: return true; Should we be returning true if !*video_frame ...
4 years, 11 months ago (2016-01-15 01:00:56 UTC) #33
emircan
https://codereview.chromium.org/1476523005/diff/340001/media/filters/vpx_video_decoder.cc File media/filters/vpx_video_decoder.cc (right): https://codereview.chromium.org/1476523005/diff/340001/media/filters/vpx_video_decoder.cc#newcode606 media/filters/vpx_video_decoder.cc:606: return true; On 2016/01/15 01:00:55, Pawel Osciak wrote: > ...
4 years, 11 months ago (2016-01-15 01:18:57 UTC) #34
lcwu1
Luke can comment on whether it's safe to return nullptr in chromecast's CreateHoleFrame.
4 years, 11 months ago (2016-01-15 01:26:29 UTC) #36
Pawel Osciak
content/common/gpu/media lgtm
4 years, 11 months ago (2016-01-15 01:28:25 UTC) #37
halliwell
https://codereview.chromium.org/1476523005/diff/360001/chromecast/renderer/media/hole_frame_factory.cc File chromecast/renderer/media/hole_frame_factory.cc (right): https://codereview.chromium.org/1476523005/diff/360001/chromecast/renderer/media/hole_frame_factory.cc#newcode68 chromecast/renderer/media/hole_frame_factory.cc:68: return nullptr; I'm not sure how useful this is. ...
4 years, 11 months ago (2016-01-15 01:52:05 UTC) #38
emircan
https://codereview.chromium.org/1476523005/diff/360001/chromecast/renderer/media/hole_frame_factory.cc File chromecast/renderer/media/hole_frame_factory.cc (right): https://codereview.chromium.org/1476523005/diff/360001/chromecast/renderer/media/hole_frame_factory.cc#newcode68 chromecast/renderer/media/hole_frame_factory.cc:68: return nullptr; On 2016/01/15 01:52:04, halliwell wrote: > I'm ...
4 years, 11 months ago (2016-01-15 02:04:10 UTC) #39
halliwell
On 2016/01/15 02:04:10, emircan wrote: > https://codereview.chromium.org/1476523005/diff/360001/chromecast/renderer/media/hole_frame_factory.cc > File chromecast/renderer/media/hole_frame_factory.cc (right): > > https://codereview.chromium.org/1476523005/diff/360001/chromecast/renderer/media/hole_frame_factory.cc#newcode68 > ...
4 years, 11 months ago (2016-01-15 02:04:54 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476523005/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476523005/380001
4 years, 11 months ago (2016-01-15 07:46:17 UTC) #43
commit-bot: I haz the power
Committed patchset #12 (id:380001)
4 years, 11 months ago (2016-01-15 08:59:43 UTC) #44
commit-bot: I haz the power
4 years, 11 months ago (2016-01-15 09:00:46 UTC) #46
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/8428d41278c107c107736454dc4fdddbd14969bd
Cr-Commit-Position: refs/heads/master@{#369705}

Powered by Google App Engine
This is Rietveld 408576698