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

Issue 583503002: rendering_helper - Warm up the rendering. (Closed)

Created:
6 years, 3 months ago by Owen Lin
Modified:
6 years, 2 months ago
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
Project:
chromium
Visibility:
Public.

Description

rendering_helper - Warm up the rendering. The rendering for the first few frames is much slower (As much as 100ms on Peach Pit). To get stable/correct numbers in performance tests, we try to warm it up by rendering several frames in the beginning. BUG=411123 TEST=Run the vda_unittest on Peach pit. Committed: https://crrev.com/7a41151b1c94a470c1259dacfe69259fa5610096 Cr-Commit-Position: refs/heads/master@{#299861}

Patch Set 1 #

Patch Set 2 : pass warm_up_iter from command line #

Total comments: 5

Patch Set 3 : address review comments #

Total comments: 1

Patch Set 4 : address review comment #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : rebase and nit #

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

Messages

Total messages: 20 (3 generated)
Owen Lin
PTAL. Thanks.
6 years, 3 months ago (2014-09-18 02:59:08 UTC) #2
Pawel Osciak
I don't understand this CL. What does this actually do and how rendering 5 (and ...
6 years, 2 months ago (2014-10-01 05:43:00 UTC) #3
Owen Lin
Hi, Antoine and Daniel, I found the GL took more time to rendering the first ...
6 years, 2 months ago (2014-10-01 07:24:43 UTC) #5
chromium-reviews
+ihf, +marcheu Yes, there are several reasons why rendering will be slower at first. Reliably ...
6 years, 2 months ago (2014-10-01 08:07:43 UTC) #6
piman
Pass the number of warmup frames on the comamand line? So that you can set ...
6 years, 2 months ago (2014-10-01 15:10:42 UTC) #7
chromium-reviews
I think Daniel explained some aspects well. If you want take a look at the ...
6 years, 2 months ago (2014-10-01 20:51:52 UTC) #8
chromium-reviews
Thank you guys. This is valuable information. It seems we can learn a lot from ...
6 years, 2 months ago (2014-10-02 04:35:27 UTC) #9
chromium-reviews
You can do 2) and most of 3) just by changing "run_my_test()" to with perf.PerfControl() ...
6 years, 2 months ago (2014-10-02 04:41:56 UTC) #10
Owen Lin
PTAL. Thanks.
6 years, 2 months ago (2014-10-07 06:21:21 UTC) #11
piman
https://codereview.chromium.org/583503002/diff/20001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/583503002/diff/20001/content/common/gpu/media/rendering_helper.cc#newcode326 content/common/gpu/media/rendering_helper.cc:326: NULL); It'd be better not to render an uninitialized ...
6 years, 2 months ago (2014-10-07 19:31:07 UTC) #12
Owen Lin
PTAL. Thanks. https://codereview.chromium.org/583503002/diff/20001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/583503002/diff/20001/content/common/gpu/media/rendering_helper.cc#newcode326 content/common/gpu/media/rendering_helper.cc:326: NULL); On 2014/10/07 19:31:07, piman (Very slow ...
6 years, 2 months ago (2014-10-14 06:01:50 UTC) #13
piman
https://codereview.chromium.org/583503002/diff/20001/content/common/gpu/media/rendering_helper.h File content/common/gpu/media/rendering_helper.h (right): https://codereview.chromium.org/583503002/diff/20001/content/common/gpu/media/rendering_helper.h#newcode57 content/common/gpu/media/rendering_helper.h:57: int warm_up_iterations; On 2014/10/14 06:01:50, Owen Lin wrote: > ...
6 years, 2 months ago (2014-10-14 17:26:43 UTC) #14
Owen Lin
Thanks. PTAL.
6 years, 2 months ago (2014-10-15 07:08:46 UTC) #15
piman
lgtm https://codereview.chromium.org/583503002/diff/80001/content/common/gpu/media/rendering_helper.cc File content/common/gpu/media/rendering_helper.cc (right): https://codereview.chromium.org/583503002/diff/80001/content/common/gpu/media/rendering_helper.cc#newcode318 content/common/gpu/media/rendering_helper.cc:318: scoped_ptr<GLubyte[]> emptyData(new GLubyte[screen_size_.GetArea() * 2]()); nit: no need ...
6 years, 2 months ago (2014-10-16 02:10:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583503002/100001
6 years, 2 months ago (2014-10-16 06:16:21 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 2 months ago (2014-10-16 06:40:02 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-10-16 06:40:39 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7a41151b1c94a470c1259dacfe69259fa5610096
Cr-Commit-Position: refs/heads/master@{#299861}

Powered by Google App Engine
This is Rietveld 408576698