/external/skia/bench/ |
SkBenchmark.cpp | 8 #include "SkBenchmark.h" 12 SK_DEFINE_INST_COUNT(SkBenchmark) 16 SkBenchmark::SkBenchmark(void* defineDict) { 25 const char* SkBenchmark::getName() { 29 SkIPoint SkBenchmark::getSize() { 33 void SkBenchmark::preDraw() { 37 void SkBenchmark::draw(SkCanvas* canvas) { 41 void SkBenchmark::postDraw() { 45 void SkBenchmark::setupPaint(SkPaint* paint) [all...] |
MutexBench.cpp | 7 #include "SkBenchmark.h" 10 class MutexBench : public SkBenchmark { 35 typedef SkBenchmark INHERITED; 40 static SkBenchmark* Fact(void* p) { return new MutexBench(p); }
|
RefCntBench.cpp | 7 #include "SkBenchmark.h" 18 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 { [all...] |
WriterBench.cpp | 9 #include "SkBenchmark.h" 13 class WriterBench : public SkBenchmark { 36 typedef SkBenchmark INHERITED; 41 static SkBenchmark* fact(void* p) { return new WriterBench(p); }
|
FontScalerBench.cpp | 8 #include "SkBenchmark.h" 17 class FontScalerBench : public SkBenchmark { 51 typedef SkBenchmark INHERITED; 56 static SkBenchmark* Fact0(void* p) { return SkNEW_ARGS(FontScalerBench, (p, false)); } 57 static SkBenchmark* Fact1(void* p) { return SkNEW_ARGS(FontScalerBench, (p, true)); }
|
MemoryBench.cpp | 8 #include "SkBenchmark.h" 15 class ChunkAllocBench : public SkBenchmark { 54 typedef SkBenchmark INHERITED; 57 static SkBenchmark* F0(void* p) { return new ChunkAllocBench(p, 64); } 58 static SkBenchmark* F1(void* p) { return new ChunkAllocBench(p, 8*1024); }
|
DecodeBench.cpp | 8 #include "SkBenchmark.h" 17 class DecodeBench : public SkBenchmark { 23 DecodeBench(void* param, SkBitmap::Config c) : SkBenchmark(param) { 54 typedef SkBenchmark INHERITED; 57 static SkBenchmark* Fact0(void* p) { return new DecodeBench(p, SkBitmap::kARGB_8888_Config); } 58 static SkBenchmark* Fact1(void* p) { return new DecodeBench(p, SkBitmap::kRGB_565_Config); } 59 static SkBenchmark* Fact2(void* p) { return new DecodeBench(p, SkBitmap::kARGB_4444_Config); }
|
GrMemoryPoolBench.cpp | 12 #include "SkBenchmark.h" 36 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); } 164 static SkBenchmark* Fact2(void* p) { return new GrMemoryPoolBenchRandom(p); } 165 static SkBenchmark* Fact3(void* p) { return new GrMemoryPoolBenchQueue(p); [all...] |
MorphologyBench.cpp | 7 #include "SkBenchmark.h" 33 class MorphologyBench : public SkBenchmark { 87 typedef SkBenchmark INHERITED; 90 static SkBenchmark* Fact00(void* p) { return new MorphologyBench(p, SMALL, kErode_MT); } 91 static SkBenchmark* Fact01(void* p) { return new MorphologyBench(p, SMALL, kDilate_MT); } 93 static SkBenchmark* Fact10(void* p) { return new MorphologyBench(p, BIG, kErode_MT); } 94 static SkBenchmark* Fact11(void* p) { return new MorphologyBench(p, BIG, kDilate_MT); } 96 static SkBenchmark* Fact20(void* p) { return new MorphologyBench(p, REAL, kErode_MT); } 97 static SkBenchmark* Fact21(void* p) { return new MorphologyBench(p, REAL, kDilate_MT); } 99 static SkBenchmark* FactNone(void* p) { return new MorphologyBench(p, 0, kErode_MT); [all...] |
SkBenchmark.h | 17 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;
|
AAClipBench.cpp | 8 #include "SkBenchmark.h" 18 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)); [all...] |
TextBench.cpp | 8 #include "SkBenchmark.h" 41 class TextBench : public SkBenchmark { 127 typedef SkBenchmark INHERITED; 134 static SkBenchmark* Fact01(void* p) { return new TextBench(p, STR, 16, 0xFF000000, kBW); } 135 static SkBenchmark* Fact02(void* p) { return new TextBench(p, STR, 16, 0xFFFF0000, kBW); } 136 static SkBenchmark* Fact03(void* p) { return new TextBench(p, STR, 16, 0x88FF0000, kBW); } 138 static SkBenchmark* Fact11(void* p) { return new TextBench(p, STR, 16, 0xFF000000, kAA); } 139 static SkBenchmark* Fact12(void* p) { return new TextBench(p, STR, 16, 0xFFFF0000, kAA); } 140 static SkBenchmark* Fact13(void* p) { return new TextBench(p, STR, 16, 0x88FF0000, kAA); } 142 static SkBenchmark* Fact21(void* p) { return new TextBench(p, STR, 16, 0xFF000000, kLCD); [all...] |
MatrixConvolutionBench.cpp | 7 #include "SkBenchmark.h" 14 class MatrixConvolutionBench : public SkBenchmark { 54 typedef SkBenchmark INHERITED; 59 static SkBenchmark* Fact00(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImageFilter::kClamp_TileMode, true); } 60 static SkBenchmark* Fact01(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImageFilter::kRepeat_TileMode, true); } 61 static SkBenchmark* Fact02(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImageFilter::kClampToBlack_TileMode, true); } 62 static SkBenchmark* Fact03(void* p) { return new MatrixConvolutionBench(p, SkMatrixConvolutionImageFilter::kClampToBlack_TileMode, false); }
|
ShaderMaskBench.cpp | 8 #include "SkBenchmark.h" 35 class ShaderMaskBench : public SkBenchmark { 90 typedef SkBenchmark INHERITED; 95 static SkBenchmark* Fact00(void* p) { return new ShaderMaskBench(p, true, kBW); } 96 static SkBenchmark* Fact01(void* p) { return new ShaderMaskBench(p, false, kBW); } 97 static SkBenchmark* Fact10(void* p) { return new ShaderMaskBench(p, true, kAA); } 98 static SkBenchmark* Fact11(void* p) { return new ShaderMaskBench(p, false, kAA); } 99 static SkBenchmark* Fact20(void* p) { return new ShaderMaskBench(p, true, kLCD); } 100 static SkBenchmark* Fact21(void* p) { return new ShaderMaskBench(p, false, kLCD); }
|
ChecksumBench.cpp | 7 #include "SkBenchmark.h" 25 class ComputeChecksumBench : public SkBenchmark { 98 typedef SkBenchmark INHERITED; 103 static SkBenchmark* Fact0(void* p) { return new ComputeChecksumBench(p, kChecksum_ChecksumType); } 104 static SkBenchmark* Fact1(void* p) { return new ComputeChecksumBench(p, kMD5_ChecksumType); } 105 static SkBenchmark* Fact2(void* p) { return new ComputeChecksumBench(p, kSHA1_ChecksumType); } 106 static SkBenchmark* Fact3(void* p) { return new ComputeChecksumBench(p, kCityHash32); } 107 static SkBenchmark* Fact4(void* p) { return new ComputeChecksumBench(p, kCityHash64); }
|
BitmapBench.cpp | 8 #include "SkBenchmark.h" 99 class BitmapBench : public SkBenchmark { 181 typedef SkBenchmark INHERITED; 244 static SkBenchmark* Fact0(void* p) { return new BitmapBench(p, false, SkBitmap::kARGB_8888_Config); } 245 static SkBenchmark* Fact1(void* p) { return new BitmapBench(p, true, SkBitmap::kARGB_8888_Config); } 246 static SkBenchmark* Fact2(void* p) { return new BitmapBench(p, true, SkBitmap::kRGB_565_Config); } 247 static SkBenchmark* Fact3(void* p) { return new BitmapBench(p, false, SkBitmap::kARGB_4444_Config); } 248 static SkBenchmark* Fact4(void* p) { return new BitmapBench(p, true, SkBitmap::kARGB_4444_Config); } 249 static SkBenchmark* Fact5(void* p) { return new BitmapBench(p, false, SkBitmap::kIndex8_Config); } 250 static SkBenchmark* Fact6(void* p) { return new BitmapBench(p, true, SkBitmap::kIndex8_Config); [all...] |
PathBench.cpp | 8 #include "SkBenchmark.h" 29 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 { [all...] |
ScalarBench.cpp | 8 #include "SkBenchmark.h" 14 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); } 171 static SkBenchmark* S1(void* p) { return new ForcedIntComparisonBench(p); } 172 static SkBenchmark* S2(void* p) { return new RectBoundsBench(p); } 173 static SkBenchmark* S3(void* p) { return new IsFiniteScalarBench(p); }
|
PathIterBench.cpp | 8 #include "SkBenchmark.h" 28 class PathIterBench : public SkBenchmark { 89 typedef SkBenchmark INHERITED; 94 static SkBenchmark* F0(void* p) { return new PathIterBench(p, false); } 95 static SkBenchmark* F1(void* p) { return new PathIterBench(p, true); }
|
ChromeBench.cpp | 7 #include "SkBenchmark.h" 452 class ScrollGmailBench : public SkBenchmark { 491 typedef SkBenchmark INHERITED; 494 static inline SkBenchmark* ScrollGmailFactory(void* p) {
|
ReadPixBench.cpp | 9 #include "SkBenchmark.h" 18 class ReadPixBench : public SkBenchmark { 60 typedef SkBenchmark INHERITED; 65 static SkBenchmark* fact(void* p) { return new ReadPixBench(p); }
|
RegionContainBench.cpp | 8 #include "SkBenchmark.h" 18 class RegionContainBench : public SkBenchmark { 63 typedef SkBenchmark INHERITED; 66 static SkBenchmark* gF0(void* p) { return SkNEW_ARGS(RegionContainBench, (p, sect_proc, "sect")); }
|
TableBench.cpp | 8 #include "SkBenchmark.h" 26 class TableBench : public SkBenchmark { 76 typedef SkBenchmark INHERITED; 79 static SkBenchmark* gFactory(void* p) { return new TableBench(p); }
|
MathBench.cpp | 1 #include "SkBenchmark.h" 18 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); } 377 static SkBenchmark* M1(void* p) { return new SlowISqrtMathBench(p); } 378 static SkBenchmark* M2(void* p) { return new FastISqrtMathBench(p); [all...] |
RegionBench.cpp | 8 #include "SkBenchmark.h" 70 class RegionBench : public SkBenchmark { 118 typedef SkBenchmark INHERITED; 123 static SkBenchmark* gF0(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, union_proc, "union")); } 124 static SkBenchmark* gF1(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, sect_proc, "intersect")); } 125 static SkBenchmark* gF2(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, diff_proc, "difference")); } 126 static SkBenchmark* gF3(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, diffrect_proc, "differencerect")); } 127 static SkBenchmark* gF4(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, diffrectbig_proc, "differencerectbig")); } 128 static SkBenchmark* gF5(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, containsrect_proc, "containsrect", 100)); } 129 static SkBenchmark* gF6(void* p) { return SkNEW_ARGS(RegionBench, (p, SMALL, sectsrgn_proc, "intersectsrgn", 10)); [all...] |