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

Issue 57663002: Add VDA decode time test. (Closed)

Created:
7 years, 1 month ago by wuchengli
Modified:
7 years, 1 month ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Add VDA decode time test and refactor. This measures the median of the decode time of all the frames. VDA::Decode is called 30 times per second to simulate WebRTC. VideoDecodeAcceleratorTest class is renamed to VideoDecodeAcceleratorParamTest, which shows it is a value-parameterized test. The common code is moved to a new test fixture VideoDecodeAcceleratorTest, which is inherited by VideoDecodeAcceleratorParamTest. The future new tests should be based on VideoDecodeAcceleratorTest if they do not need to test different combinations of the parameters. BUG=292703 TEST=Run VDA tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233503

Patch Set 1 : #

Total comments: 8

Patch Set 2 : change average to median #

Patch Set 3 : sort the decode time vector #

Patch Set 4 : address owenlin's comments #

Total comments: 10

Patch Set 5 : address Ami's comments #

Total comments: 1

Patch Set 6 : fix code style by owenlin's comment #

Total comments: 2

Patch Set 7 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -146 lines) Patch
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 33 chunks +331 lines, -146 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
wuchengli
PTAL.
7 years, 1 month ago (2013-11-04 08:03:10 UTC) #1
wuchengli
I'm changing the average to median.
7 years, 1 month ago (2013-11-04 08:54:06 UTC) #2
Owen Lin
https://codereview.chromium.org/57663002/diff/40001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/57663002/diff/40001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode612 content/common/gpu/media/video_decode_accelerator_unittest.cc:612: it = decode_start_time_.find(picture.bitstream_buffer_id()); merge these two lines ? https://codereview.chromium.org/57663002/diff/40001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode871 ...
7 years, 1 month ago (2013-11-04 10:20:04 UTC) #3
wuchengli
All done. PTAL. https://codereview.chromium.org/57663002/diff/40001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/57663002/diff/40001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode612 content/common/gpu/media/video_decode_accelerator_unittest.cc:612: it = decode_start_time_.find(picture.bitstream_buffer_id()); On 2013/11/04 10:20:04, ...
7 years, 1 month ago (2013-11-04 10:44:29 UTC) #4
Ami GONE FROM CHROMIUM
Please describe as part of your CL description the refactoring changes done in this CL ...
7 years, 1 month ago (2013-11-04 18:26:50 UTC) #5
wuchengli
All done. PTAL. https://codereview.chromium.org/57663002/diff/130001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/57663002/diff/130001/content/common/gpu/media/rendering_helper.cc#newcode85 content/common/gpu/media/rendering_helper.cc:85: : num_windows(1), render_as_thumbnails(false) {} On 2013/11/04 ...
7 years, 1 month ago (2013-11-05 06:24:14 UTC) #6
Owen Lin
lgtm https://codereview.chromium.org/57663002/diff/240001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/57663002/diff/240001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode616 content/common/gpu/media/video_decode_accelerator_unittest.cc:616: = decode_start_time_.find(picture.bitstream_buffer_id()); put = in previous line
7 years, 1 month ago (2013-11-05 07:11:22 UTC) #7
Ami GONE FROM CHROMIUM
LGTM % nits. https://codereview.chromium.org/57663002/diff/290001/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://codereview.chromium.org/57663002/diff/290001/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode918 content/common/gpu/media/video_decode_accelerator_unittest.cc:918: const std::vector<TestVideoFile*>& test_video_files, |test_video_files| is an ...
7 years, 1 month ago (2013-11-05 16:41:03 UTC) #8
wuchengli
All done. Submitting.
7 years, 1 month ago (2013-11-06 04:44:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuchengli@chromium.org/57663002/360001
7 years, 1 month ago (2013-11-06 04:45:39 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94630
7 years, 1 month ago (2013-11-06 08:52:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuchengli@chromium.org/57663002/360001
7 years, 1 month ago (2013-11-06 08:56:18 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94759
7 years, 1 month ago (2013-11-06 12:20:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuchengli@chromium.org/57663002/360001
7 years, 1 month ago (2013-11-06 13:31:21 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94918
7 years, 1 month ago (2013-11-06 17:11:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wuchengli@chromium.org/57663002/360001
7 years, 1 month ago (2013-11-07 01:30:18 UTC) #16
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 06:27:10 UTC) #17
Message was sent while issue was closed.
Change committed as 233503

Powered by Google App Engine
This is Rietveld 408576698