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

Issue 7718020: Initial checkin of the compositor_model_bench tool, which simulates the GPU demands of Chromium's... (Closed)

Created:
9 years, 4 months ago by joshtrask
Modified:
6 years, 8 months ago
Reviewers:
piman
CC:
chromium-reviews, pam+watch_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Initial checkin of the compositor_model_bench tool, which simulates the GPU demands of Chromium's GPU-accelerated compositor. In the current version, we simulate the performance of the existing forward rendering model; coming changes will prototype a new model. Patch 3: fix the number of spaces per indentation (hopefully everywhere) Patch 4: move most of the code in compositor_model_bench.cc into a class so that I don't have as many globals scattered around Patch 5: take out all standard streams, use LOG streams instead Patch 6: fixed whitespace in class declarations Patch 7: made suggested changes to render_model_utils Patch 8: when I took out the streams for reading in a file and replaced them with a more complicated C-style implementation, said implementation was broken. At least the fix was quick! Patch 9: superficial improvement to tools.gyp Patch 10: made suggested changes to shaders Patch 11: made suggested changes to render_tree Patch 12: forgot to include what I use (DCHECK) and also there was a typo. Whoops! Patch 12: made suggested changes to render_models, forward_render_model Patch 13: one save didn't make the last patch; got it now Patch 14: I think this is the one I described as patch 13 above. I lost count... Patch 15: made suggested changes to forward_render_model Patch 16: this (should) be the last of the trivial style issues Patch 17: spoke a bit too soon -- some capitalization stuff Patch 18: made suggested changes for measuring simulation times Patch 19: made suggested changes for reading command line arguments, using our path/file libraries Patch 20: a couple lint issues I've been missing on the server-side. Also, this was set up in a separate working copy than I was in before (the other one is stuck working on a change that's been more complicated than was expected) -- so I'm not sure if gcl will correctly apply this patch to the issue from before (#7686009) Patch 21: switching to VBO's instead of immediate mode drawing -- also, the first build that runs on a Cr-48 Patch 3 (would've been patch 22 in the original issue): Fixing some lint errors Patch 4: handling resize. Resizing the window of an ongoing session doesn't actually work on my dev machine, but at least now the viewport doesn't get cropped on the Cr-48. Patch 5: fixing (unwarned) undefined behavior resulting from a smart pointer to a forward-declared type Patch 6: new suggested changes to compositor_model_bench.cc Patch 7: new suggested changes to render_model_utils Patch 8: new suggested changes to render_models.cc Patch 9: sweeping changes to get the access restrictions suggested for render_tree.h Patch 10: stylistic changes suggested in render_tree.cc Patch 11: suggested stylistic changes in shaders.cc -- only the simple ones; still have to run some tests with changing attribute mappings Patch 12: the rest of the changes for shaders.cc (named parameters, and using 0 & 1 instead of 10 & 11 -- which I swear didn't work the first time I tried it?) Patch 13: apparently the undefined behavior I was worrying about (in patch 5) isn't actually a problem, so I switched back to using a scoped_ptr

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 42

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2085 lines, -0 lines) Patch
M build/all.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/compositor_model_bench.cc View 1 2 3 4 5 1 chunk +406 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/forward_render_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +34 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/forward_render_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +71 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT10.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT11.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT12.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT13.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT4.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT5.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT6.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT7.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT8.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT9.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special10.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special11.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special12.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special4.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special5.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special6.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special7.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special8.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/YT_special9.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/abra0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/abra1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/abra2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/abra3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/abra4.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/abra5.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test00_0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test00_1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test00_2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test00_3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test01_0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test01_1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test01_2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test01_3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test02_0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test02_1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test02_2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test02_3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test03_0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test03_1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test03_2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test03_3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test04_0.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test04_1.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test04_2.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/measuring_confs/test04_3.txt.json View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/render_model_utils.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/render_model_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +176 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/render_models.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/render_models.cc View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/render_tree.h View 1 2 3 4 5 6 7 8 1 chunk +218 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/render_tree.cc View 1 2 3 4 5 6 7 8 9 1 chunk +442 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/shaders.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +54 lines, -0 lines 0 comments Download
A gpu/tools/compositor_model_bench/shaders.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +450 lines, -0 lines 0 comments Download
A gpu/tools/tools.gyp View 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
piman
http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/compositor_model_bench.cc File gpu/tools/compositor_model_bench/compositor_model_bench.cc (right): http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/compositor_model_bench.cc#newcode139 gpu/tools/compositor_model_bench/compositor_model_bench.cc:139: Resize(e.xconfigure.width, e.xconfigure.height); If you intend to fall-through, you need ...
9 years, 4 months ago (2011-08-26 02:24:16 UTC) #1
joshtrask
http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/forward_render_model.cc File gpu/tools/compositor_model_bench/forward_render_model.cc (right): http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/forward_render_model.cc#newcode61 gpu/tools/compositor_model_bench/forward_render_model.cc:61: delete visitor_; On 2011/08/26 02:24:16, piman wrote: > use ...
9 years, 4 months ago (2011-08-26 04:12:35 UTC) #2
piman
On Thu, Aug 25, 2011 at 9:12 PM, <joshtrask@google.com> wrote: > Reviewers: piman, > > ...
9 years, 4 months ago (2011-08-26 04:15:05 UTC) #3
joshtrask
http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/forward_render_model.cc File gpu/tools/compositor_model_bench/forward_render_model.cc (right): http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/forward_render_model.cc#newcode70 gpu/tools/compositor_model_bench/forward_render_model.cc:70: if (visitor_) Is that true? What about std::bad_alloc? On ...
9 years, 4 months ago (2011-08-26 04:29:04 UTC) #4
joshtrask
http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/forward_render_model.cc File gpu/tools/compositor_model_bench/forward_render_model.cc (right): http://codereview.chromium.org/7718020/diff/20001/gpu/tools/compositor_model_bench/forward_render_model.cc#newcode70 gpu/tools/compositor_model_bench/forward_render_model.cc:70: if (visitor_) Well, I suppose if that was going ...
9 years, 4 months ago (2011-08-26 04:30:07 UTC) #5
piman
9 years, 3 months ago (2011-08-27 17:49:36 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698