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

Issue 2506363002: vda_unittest: Add a new test case to verify the visible size. (Closed)

Created:
4 years, 1 month ago by Owen Lin
Modified:
4 years ago
Reviewers:
kcwu, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

vda_unittest: Add a new test case to verify the visible size. Add a new test case to verify the visible rectangles returned in PictureReady() are correct. It could be an empty rectangle if the information is not available from the VDA. BUG=658654 Test=Run and pass the vda_unittest CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M media/gpu/video_decode_accelerator_unittest.cc View 5 chunks +65 lines, -0 lines 12 comments Download

Messages

Total messages: 13 (5 generated)
Owen Lin
4 years, 1 month ago (2016-11-17 07:24:39 UTC) #3
Owen Lin
PTAL. Thanks.
4 years, 1 month ago (2016-11-17 07:24:55 UTC) #4
wuchengli
Kuang-che. Please help review this.
4 years, 1 month ago (2016-11-17 07:27:22 UTC) #6
Pawel Osciak
https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc File media/gpu/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc#newcode185 media/gpu/video_decode_accelerator_unittest.cc:185: struct VisibleRectEntry { Please add a short sentence describing ...
4 years, 1 month ago (2016-11-17 07:50:02 UTC) #7
kcwu
https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc File media/gpu/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc#newcode1757 media/gpu/video_decode_accelerator_unittest.cc:1757: base::StringPrintf("(%d, %d, %d, %d) %d", r.x(), r.y(), r.width(), How ...
4 years, 1 month ago (2016-11-17 07:54:51 UTC) #8
wuchengli
https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc File media/gpu/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc#newcode1751 media/gpu/video_decode_accelerator_unittest.cc:1751: CreateAndStartDecoder(client, note); On 2016/11/17 07:50:01, Pawel Osciak wrote: > ...
4 years, 1 month ago (2016-11-17 08:23:42 UTC) #9
Pawel Osciak
https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc File media/gpu/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_accelerator_unittest.cc#newcode1751 media/gpu/video_decode_accelerator_unittest.cc:1751: CreateAndStartDecoder(client, note); On 2016/11/17 08:23:41, wuchengli wrote: > On ...
4 years, 1 month ago (2016-11-17 08:40:32 UTC) #10
Owen Lin
4 years, 1 month ago (2016-11-17 09:19:05 UTC) #11
On 2016/11/17 08:40:32, Pawel Osciak wrote:
>
https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_acce...
> File media/gpu/video_decode_accelerator_unittest.cc (right):
> 
>
https://codereview.chromium.org/2506363002/diff/1/media/gpu/video_decode_acce...
> media/gpu/video_decode_accelerator_unittest.cc:1751:
> CreateAndStartDecoder(client, note);
> On 2016/11/17 08:23:41, wuchengli wrote:
> > On 2016/11/17 07:50:01, Pawel Osciak wrote:
> > > I wonder if we need an additional test case just for this, we could maybe
> just
> > > verify this in SimpleDecode, otherwise we are making the automated tests
run
> > > longer...
> > Adding a test case has a benefits that it's clear what is broken.
> 
> Yes, but I believe making the test run longer outweights this advantage, and
> proper logging via EXPECT() should be enough to see what went wrong.
> 
> > TestDecodeTimeMedian is a performance test and runs very long. We can remove
> > TestDecodeTimeMedian from the default test suite to save some time.
> 
> That's an orthogonal issue. The test stream is 10 seconds long. By adding this
> test, we are making each run of this test 10 seconds longer in the test lab
for
> each run, but we could achieve this by adding this verification to one of the
> existing test cases, just like we are already verifying multiple things in
them,
> like the number of frames decoded.

I agree with you. But we don't need to render the video frames,
so it only took about 1 seconds to decode on ELM.

Powered by Google App Engine
This is Rietveld 408576698