|
Implement a benchmark for GrResourceCache
Adds "grresourcecache_add" and "grresourcecache_find" bench tests to test
GrResourceCache::add and GrResourceCache::find. The tests work only
with GPU backends, since GrResourceCache needs an GrGpu.
Modifies bench tests to override SkBenchmark::isSuitableFor(Backend)
function that specifies what kind of backend the test is inteded
for. This replaces the previous "fIsRendering" flag that would
indicate test that did no rendering.
Adds SkCanvas::getGrContext() call to get the GrContext that the
canvas ends up drawing to. The member function solves a common
use-case that is also used in the benchmark added here.
Committed: http://code.google.com/p/skia/source/detail?r=12334
Total comments: 10
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+454 lines, -112 lines) |
Patch |
|
M |
bench/ChecksumBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/DecodeBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/GrMemoryPoolBench.cpp
|
View
|
1
2
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
A |
bench/GrResourceCacheBench.cpp
|
View
|
1
2
3
4
|
1 chunk |
+242 lines, -0 lines |
0 comments
|
Download
|
|
M |
bench/ImageDecodeBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/InterpBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/MathBench.cpp
|
View
|
|
7 chunks |
+27 lines, -7 lines |
0 comments
|
Download
|
|
M |
bench/Matrix44Bench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/MatrixBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/MemoryBench.cpp
|
View
|
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
bench/MemsetBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/MutexBench.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
bench/PathBench.cpp
|
View
|
1
2
|
4 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
bench/PathIterBench.cpp
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/PictureRecordBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/RTreeBench.cpp
|
View
|
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
bench/RefCntBench.cpp
|
View
|
1
2
|
6 chunks |
+18 lines, -12 lines |
0 comments
|
Download
|
|
M |
bench/RegionBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/RegionContainBench.cpp
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/ScalarBench.cpp
|
View
|
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
bench/SkBenchmark.h
|
View
|
1
2
3
|
3 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
|
M |
bench/SkBenchmark.cpp
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/SkipZeroesBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/SortBench.cpp
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/WriterBench.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
bench/XfermodeBench.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
bench/benchmain.cpp
|
View
|
1
2
3
|
10 chunks |
+22 lines, -29 lines |
0 comments
|
Download
|
|
M |
gm/bleed.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/gm.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
gm/gm.cpp
|
View
|
1
2
3
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
|
M |
gm/image.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/texdata.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gyp/bench.gypi
|
View
|
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkCanvas.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkCanvas.cpp
|
View
|
1
2
3
4
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|