|
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
Total comments: 42
|
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
|
Total messages: 6 (0 generated)
|