Home
last modified time | relevance | path

Searched refs:SkBenchmark (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/bench/
DSkBenchmark.cpp12 SK_DEFINE_INST_COUNT(SkBenchmark)
16 SkBenchmark::SkBenchmark(void* defineDict) { in SkBenchmark() function in SkBenchmark
25 const char* SkBenchmark::getName() { in getName()
29 SkIPoint SkBenchmark::getSize() { in getSize()
33 void SkBenchmark::preDraw() { in preDraw()
37 void SkBenchmark::draw(SkCanvas* canvas) { in draw()
41 void SkBenchmark::postDraw() { in postDraw()
45 void SkBenchmark::setupPaint(SkPaint* paint) { in setupPaint()
55 const char* SkBenchmark::findDefine(const char* key) const { in findDefine()
65 bool SkBenchmark::findDefine32(const char* key, int32_t* value) const { in findDefine32()
[all …]
DRefCntBench.cpp18 class RefCntBench_Stack : public SkBenchmark {
39 typedef SkBenchmark INHERITED;
55 class RefCntBench_Heap : public SkBenchmark {
78 typedef SkBenchmark INHERITED;
81 class RefCntBench_New : public SkBenchmark {
103 typedef SkBenchmark INHERITED;
108 class WeakRefCntBench_Stack : public SkBenchmark {
129 typedef SkBenchmark INHERITED;
138 class WeakRefCntBench_Heap : public SkBenchmark {
161 typedef SkBenchmark INHERITED;
[all …]
DAAClipBench.cpp18 class AAClipBench : public SkBenchmark {
87 typedef SkBenchmark INHERITED;
93 class NestedAAClipBench : public SkBenchmark {
179 typedef SkBenchmark INHERITED;
183 class AAClipBuilderBench : public SkBenchmark {
225 typedef SkBenchmark INHERITED;
229 class AAClipRegionBench : public SkBenchmark {
258 typedef SkBenchmark INHERITED;
263 static SkBenchmark* Fact0(void* p) { return SkNEW_ARGS(AAClipBuilderBench, (p, false, false)); } in Fact0()
264 static SkBenchmark* Fact1(void* p) { return SkNEW_ARGS(AAClipBuilderBench, (p, false, true)); } in Fact1()
[all …]
DPathBench.cpp29 class PathBench : public SkBenchmark {
79 typedef SkBenchmark INHERITED;
223 class RandomPathBench : public SkBenchmark {
315 typedef SkBenchmark INHERITED;
624 class CirclesBench : public SkBenchmark {
679 typedef SkBenchmark INHERITED;
688 class ArbRoundRectBench : public SkBenchmark {
788 typedef SkBenchmark INHERITED;
791 class ConservativelyContainsBench : public SkBenchmark {
866 typedef SkBenchmark INHERITED;
[all …]
DMathBench.cpp18 class MathBench : public SkBenchmark {
56 typedef SkBenchmark INHERITED;
248 class IsFiniteBench : public SkBenchmark {
312 typedef SkBenchmark INHERITED;
315 class FloorBench : public SkBenchmark {
371 typedef SkBenchmark INHERITED;
376 static SkBenchmark* M0(void* p) { return new NoOpMathBench(p); } in M0()
377 static SkBenchmark* M1(void* p) { return new SlowISqrtMathBench(p); } in M1()
378 static SkBenchmark* M2(void* p) { return new FastISqrtMathBench(p); } in M2()
379 static SkBenchmark* M3(void* p) { return new QMul64Bench(p); } in M3()
[all …]
DTextBench.cpp41 class TextBench : public SkBenchmark {
127 typedef SkBenchmark INHERITED;
134 static SkBenchmark* Fact01(void* p) { return new TextBench(p, STR, 16, 0xFF000000, kBW); } in Fact01()
135 static SkBenchmark* Fact02(void* p) { return new TextBench(p, STR, 16, 0xFFFF0000, kBW); } in Fact02()
136 static SkBenchmark* Fact03(void* p) { return new TextBench(p, STR, 16, 0x88FF0000, kBW); } in Fact03()
138 static SkBenchmark* Fact11(void* p) { return new TextBench(p, STR, 16, 0xFF000000, kAA); } in Fact11()
139 static SkBenchmark* Fact12(void* p) { return new TextBench(p, STR, 16, 0xFFFF0000, kAA); } in Fact12()
140 static SkBenchmark* Fact13(void* p) { return new TextBench(p, STR, 16, 0x88FF0000, kAA); } in Fact13()
142 static SkBenchmark* Fact21(void* p) { return new TextBench(p, STR, 16, 0xFF000000, kLCD); } in Fact21()
143 static SkBenchmark* Fact22(void* p) { return new TextBench(p, STR, 16, 0xFFFF0000, kLCD); } in Fact22()
[all …]
DMorphologyBench.cpp33 class MorphologyBench : public SkBenchmark {
87 typedef SkBenchmark INHERITED;
90 static SkBenchmark* Fact00(void* p) { return new MorphologyBench(p, SMALL, kErode_MT); } in Fact00()
91 static SkBenchmark* Fact01(void* p) { return new MorphologyBench(p, SMALL, kDilate_MT); } in Fact01()
93 static SkBenchmark* Fact10(void* p) { return new MorphologyBench(p, BIG, kErode_MT); } in Fact10()
94 static SkBenchmark* Fact11(void* p) { return new MorphologyBench(p, BIG, kDilate_MT); } in Fact11()
96 static SkBenchmark* Fact20(void* p) { return new MorphologyBench(p, REAL, kErode_MT); } in Fact20()
97 static SkBenchmark* Fact21(void* p) { return new MorphologyBench(p, REAL, kDilate_MT); } in Fact21()
99 static SkBenchmark* FactNone(void* p) { return new MorphologyBench(p, 0, kErode_MT); } in FactNone()
DBitmapBench.cpp99 class BitmapBench : public SkBenchmark {
181 typedef SkBenchmark INHERITED;
244 static SkBenchmark* Fact0(void* p) { return new BitmapBench(p, false, SkBitmap::kARGB_8888_Config);… in Fact0()
245 static SkBenchmark* Fact1(void* p) { return new BitmapBench(p, true, SkBitmap::kARGB_8888_Config); } in Fact1()
246 static SkBenchmark* Fact2(void* p) { return new BitmapBench(p, true, SkBitmap::kRGB_565_Config); } in Fact2()
247 static SkBenchmark* Fact3(void* p) { return new BitmapBench(p, false, SkBitmap::kARGB_4444_Config);… in Fact3()
248 static SkBenchmark* Fact4(void* p) { return new BitmapBench(p, true, SkBitmap::kARGB_4444_Config); } in Fact4()
249 static SkBenchmark* Fact5(void* p) { return new BitmapBench(p, false, SkBitmap::kIndex8_Config); } in Fact5()
250 static SkBenchmark* Fact6(void* p) { return new BitmapBench(p, true, SkBitmap::kIndex8_Config); } in Fact6()
251 static SkBenchmark* Fact7(void* p) { return new BitmapBench(p, true, SkBitmap::kARGB_8888_Config, t… in Fact7()
[all …]
DGrMemoryPoolBench.cpp36 class GrMemoryPoolBenchStack : public SkBenchmark {
86 typedef SkBenchmark INHERITED;
92 class GrMemoryPoolBenchRandom : public SkBenchmark {
123 typedef SkBenchmark INHERITED;
129 class GrMemoryPoolBenchQueue : public SkBenchmark {
158 typedef SkBenchmark INHERITED;
163 static SkBenchmark* Fact1(void* p) { return new GrMemoryPoolBenchStack(p); } in Fact1()
164 static SkBenchmark* Fact2(void* p) { return new GrMemoryPoolBenchRandom(p); } in Fact2()
165 static SkBenchmark* Fact3(void* p) { return new GrMemoryPoolBenchQueue(p); } in Fact3()
DDecodeBench.cpp17 class DecodeBench : public SkBenchmark {
23 DecodeBench(void* param, SkBitmap::Config c) : SkBenchmark(param) { in DecodeBench()
54 typedef SkBenchmark INHERITED;
57 static SkBenchmark* Fact0(void* p) { return new DecodeBench(p, SkBitmap::kARGB_8888_Config); } in Fact0()
58 static SkBenchmark* Fact1(void* p) { return new DecodeBench(p, SkBitmap::kRGB_565_Config); } in Fact1()
59 static SkBenchmark* Fact2(void* p) { return new DecodeBench(p, SkBitmap::kARGB_4444_Config); } in Fact2()
DRegionBench.cpp70 class RegionBench : public SkBenchmark {
118 typedef SkBenchmark INHERITED;
123 static SkBenchmark* gF0(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, union_proc, "union"));… in gF0()
124 static SkBenchmark* gF1(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, sect_proc, "intersect"… in gF1()
125 static SkBenchmark* gF2(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, diff_proc, "difference… in gF2()
126 static SkBenchmark* gF3(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, diffrect_proc, "differ… in gF3()
127 static SkBenchmark* gF4(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, diffrectbig_proc, "dif… in gF4()
128 static SkBenchmark* gF5(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, containsrect_proc, "co… in gF5()
129 static SkBenchmark* gF6(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, sectsrgn_proc, "inters… in gF6()
130 static SkBenchmark* gF7(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, sectsrect_proc, "inter… in gF7()
[all …]
DShaderMaskBench.cpp35 class ShaderMaskBench : public SkBenchmark {
90 typedef SkBenchmark INHERITED;
95 static SkBenchmark* Fact00(void* p) { return new ShaderMaskBench(p, true, kBW); } in Fact00()
96 static SkBenchmark* Fact01(void* p) { return new ShaderMaskBench(p, false, kBW); } in Fact01()
97 static SkBenchmark* Fact10(void* p) { return new ShaderMaskBench(p, true, kAA); } in Fact10()
98 static SkBenchmark* Fact11(void* p) { return new ShaderMaskBench(p, false, kAA); } in Fact11()
99 static SkBenchmark* Fact20(void* p) { return new ShaderMaskBench(p, true, kLCD); } in Fact20()
100 static SkBenchmark* Fact21(void* p) { return new ShaderMaskBench(p, false, kLCD); } in Fact21()
DGradientBench.cpp157 class GradientBench : public SkBenchmark {
218 typedef SkBenchmark INHERITED;
223 class Gradient2Bench : public SkBenchmark {
257 typedef SkBenchmark INHERITED;
260 static SkBenchmark* Fact0(void* p) { return new GradientBench(p, kLinear_GradType); } in Fact0()
261 static SkBenchmark* Fact01(void* p) { return new GradientBench(p, kLinear_GradType, SkShader::kMirr… in Fact01()
265 static SkBenchmark* Fact1(void* p) { return new GradientBench(p, kRadial_GradType, SkShader::kClamp… in Fact1()
269 static SkBenchmark* Fact1o(void* p) { return new GradientBench(p, kRadial_GradType, SkShader::kClam… in Fact1o()
271 static SkBenchmark* Fact11(void* p) { return new GradientBench(p, kRadial_GradType, SkShader::kMirr… in Fact11()
272 static SkBenchmark* Fact2(void* p) { return new GradientBench(p, kSweep_GradType); } in Fact2()
[all …]
DScalarBench.cpp14 class ScalarBench : public SkBenchmark {
40 typedef SkBenchmark INHERITED;
135 class RectBoundsBench : public SkBenchmark {
165 typedef SkBenchmark INHERITED;
170 static SkBenchmark* S0(void* p) { return new FloatComparisonBench(p); } in S0()
171 static SkBenchmark* S1(void* p) { return new ForcedIntComparisonBench(p); } in S1()
172 static SkBenchmark* S2(void* p) { return new RectBoundsBench(p); } in S2()
173 static SkBenchmark* S3(void* p) { return new IsFiniteScalarBench(p); } in S3()
DChecksumBench.cpp25 class ComputeChecksumBench : public SkBenchmark {
98 typedef SkBenchmark INHERITED;
103 static SkBenchmark* Fact0(void* p) { return new ComputeChecksumBench(p, kChecksum_ChecksumType); } in Fact0()
104 static SkBenchmark* Fact1(void* p) { return new ComputeChecksumBench(p, kMD5_ChecksumType); } in Fact1()
105 static SkBenchmark* Fact2(void* p) { return new ComputeChecksumBench(p, kSHA1_ChecksumType); } in Fact2()
106 static SkBenchmark* Fact3(void* p) { return new ComputeChecksumBench(p, kCityHash32); } in Fact3()
107 static SkBenchmark* Fact4(void* p) { return new ComputeChecksumBench(p, kCityHash64); } in Fact4()
DMatrixConvolutionBench.cpp14 class MatrixConvolutionBench : public SkBenchmark {
54 typedef SkBenchmark INHERITED;
59 static SkBenchmark* Fact00(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImage… in Fact00()
60 static SkBenchmark* Fact01(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImage… in Fact01()
61 static SkBenchmark* Fact02(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImage… in Fact02()
62 static SkBenchmark* Fact03(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImage… in Fact03()
DSkBenchmark.h17 static SkBenchmark* SK_MACRO_APPEND_LINE(F_)(void* p) { code; } \
48 class SkBenchmark : public SkRefCnt {
50 SK_DECLARE_INST_COUNT(SkBenchmark)
52 SkBenchmark(void* defineDict);
133 typedef SkTRegistry<SkBenchmark*, void*> BenchRegistry;
DRTreeBench.cpp24 class BBoxBuildBench : public SkBenchmark {
63 typedef SkBenchmark INHERITED;
67 class BBoxQueryBench : public SkBenchmark {
145 typedef SkBenchmark INHERITED;
192 static inline SkBenchmark* Fact0(void* p) { in Fact0()
196 static inline SkBenchmark* Fact1(void* p) { in Fact1()
200 static inline SkBenchmark* Fact2(void* p) { in Fact2()
204 static inline SkBenchmark* Fact3(void* p) { in Fact3()
208 static inline SkBenchmark* Fact4(void* p) { in Fact4()
DMemoryBench.cpp15 class ChunkAllocBench : public SkBenchmark {
54 typedef SkBenchmark INHERITED;
57 static SkBenchmark* F0(void* p) { return new ChunkAllocBench(p, 64); } in F0()
58 static SkBenchmark* F1(void* p) { return new ChunkAllocBench(p, 8*1024); } in F1()
DFontScalerBench.cpp17 class FontScalerBench : public SkBenchmark {
51 typedef SkBenchmark INHERITED;
56 static SkBenchmark* Fact0(void* p) { return SkNEW_ARGS(FontScalerBench, (p, false)); } in Fact0()
57 static SkBenchmark* Fact1(void* p) { return SkNEW_ARGS(FontScalerBench, (p, true)); } in Fact1()
DMutexBench.cpp10 class MutexBench : public SkBenchmark {
35 typedef SkBenchmark INHERITED;
40 static SkBenchmark* Fact(void* p) { return new MutexBench(p); } in Fact()
DWriterBench.cpp13 class WriterBench : public SkBenchmark {
36 typedef SkBenchmark INHERITED;
41 static SkBenchmark* fact(void* p) { return new WriterBench(p); } in fact()
DPathIterBench.cpp28 class PathIterBench : public SkBenchmark {
89 typedef SkBenchmark INHERITED;
94 static SkBenchmark* F0(void* p) { return new PathIterBench(p, false); } in F0()
95 static SkBenchmark* F1(void* p) { return new PathIterBench(p, true); } in F1()
DInterpBench.cpp10 class InterpBench : public SkBenchmark {
43 typedef SkBenchmark INHERITED;
156 static SkBenchmark* M0(void* p) { return new Fixed16D16Interp(p); } in M0()
157 static SkBenchmark* M1(void* p) { return new Fixed32D32Interp(p); } in M1()
158 static SkBenchmark* M2(void* p) { return new Fixed16D48Interp(p); } in M2()
159 static SkBenchmark* M3(void* p) { return new FloatInterp(p); } in M3()
160 static SkBenchmark* M4(void* p) { return new DoubleInterp(p); } in M4()
DPictureRecordBench.cpp17 class PictureRecordBench : public SkBenchmark {
61 typedef SkBenchmark INHERITED;
187 static SkBenchmark* Fact0(void* p) { return new DictionaryRecordBench(p); } in Fact0()
188 static SkBenchmark* Fact1(void* p) { return new UniquePaintDictionaryRecordBench(p); } in Fact1()
189 static SkBenchmark* Fact2(void* p) { return new RecurringPaintDictionaryRecordBench(p); } in Fact2()

12