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

Issue 769133003: vea_unittest - Control the rate of input frames. (Closed)

Created:
6 years ago by Owen Lin
Modified:
6 years ago
Reviewers:
wuchengli, Pawel Osciak
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

vea_unittest - Control the rate of input frames. For some performance tests, we need to control the rate of the input frames, instead of feeding those frames at the full speed. For example, this can simulate the frames coming from a video capture device. So that we can measure the CPU usage and the power consumption in these scenarios. BUG=chromium:350255 TEST=Run the test on peach-pit Committed: https://crrev.com/a4b5815816e5f45423e8cf76fea84eec5f520634 Cr-Commit-Position: refs/heads/master@{#309397}

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 16

Patch Set 6 : Address Pawel's comments #

Total comments: 2

Patch Set 7 : #

Total comments: 1

Patch Set 8 : rebase and rename to run_at_fps #

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

Messages

Total messages: 20 (2 generated)
Owen Lin
PTAL. Thanks.
6 years ago (2014-12-02 04:59:13 UTC) #2
wuchengli
https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode99 content/common/gpu/media/video_encode_accelerator_unittest.cc:99: double g_input_fps = 0; Document this and move it ...
6 years ago (2014-12-09 05:26:33 UTC) #3
Owen Lin
Thanks. Please take another look. https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode99 content/common/gpu/media/video_encode_accelerator_unittest.cc:99: double g_input_fps = 0; ...
6 years ago (2014-12-09 08:29:15 UTC) #4
wuchengli
https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode506 content/common/gpu/media/video_encode_accelerator_unittest.cc:506: void FeedEncoderWithOneInputIfPossible(); On 2014/12/09 08:29:15, Owen Lin wrote: > ...
6 years ago (2014-12-10 02:29:14 UTC) #5
Owen Lin
https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode506 content/common/gpu/media/video_encode_accelerator_unittest.cc:506: void FeedEncoderWithOneInputIfPossible(); On 2014/12/10 02:29:14, wuchengli wrote: > On ...
6 years ago (2014-12-10 05:59:51 UTC) #6
wuchengli
https://codereview.chromium.org/769133003/diff/40001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/40001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode503 content/common/gpu/media/video_encode_accelerator_unittest.cc:503: // then it asked for via RequireBitstreamBuffers(). Return false ...
6 years ago (2014-12-10 07:06:56 UTC) #7
Owen Lin
https://codereview.chromium.org/769133003/diff/40001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/40001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode503 content/common/gpu/media/video_encode_accelerator_unittest.cc:503: // then it asked for via RequireBitstreamBuffers(). Return false ...
6 years ago (2014-12-11 03:53:48 UTC) #8
wuchengli
https://codereview.chromium.org/769133003/diff/60001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/60001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode883 content/common/gpu/media/video_encode_accelerator_unittest.cc:883: DCHECK(FeedEncoderWithOneInput()); if (input_duration_ == base::TimeDelta()) is still required here. ...
6 years ago (2014-12-11 05:08:09 UTC) #9
Owen Lin
https://chromiumcodereview.appspot.com/769133003/diff/60001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/769133003/diff/60001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode883 content/common/gpu/media/video_encode_accelerator_unittest.cc:883: DCHECK(FeedEncoderWithOneInput()); On 2014/12/11 05:08:08, wuchengli wrote: > if (input_duration_ ...
6 years ago (2014-12-11 05:28:30 UTC) #10
wuchengli
LGTM. Pawel. Need owner review.
6 years ago (2014-12-11 08:51:34 UTC) #11
Pawel Osciak
https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode467 content/common/gpu/media/video_encode_accelerator_unittest.cc:467: double input_fps, Would it make more sense to make ...
6 years ago (2014-12-16 10:56:41 UTC) #12
Owen Lin
https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode467 content/common/gpu/media/video_encode_accelerator_unittest.cc:467: double input_fps, On 2014/12/16 10:56:40, Pawel Osciak wrote: > ...
6 years ago (2014-12-17 05:27:29 UTC) #13
Pawel Osciak
https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode925 content/common/gpu/media/video_encode_accelerator_unittest.cc:925: // Destructor will also stop the timer. On 2014/12/17 ...
6 years ago (2014-12-18 04:54:10 UTC) #14
Owen Lin
https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode925 content/common/gpu/media/video_encode_accelerator_unittest.cc:925: // Destructor will also stop the timer. On 2014/12/18 ...
6 years ago (2014-12-18 08:38:11 UTC) #15
Pawel Osciak
lgtm % nit https://codereview.chromium.org/769133003/diff/120001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/769133003/diff/120001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode1229 content/common/gpu/media/video_encode_accelerator_unittest.cc:1229: if (it->first == "real_time_clock") { Hm, ...
6 years ago (2014-12-21 08:07:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769133003/140001
6 years ago (2014-12-22 05:24:31 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years ago (2014-12-22 06:25:03 UTC) #19
commit-bot: I haz the power
6 years ago (2014-12-22 06:25:42 UTC) #20
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a4b5815816e5f45423e8cf76fea84eec5f520634
Cr-Commit-Position: refs/heads/master@{#309397}

Powered by Google App Engine
This is Rietveld 408576698