| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "Benchmark.h" | 8 #include "Benchmark.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 *scanline = 0x00000000; | 301 *scanline = 0x00000000; |
| 302 } | 302 } |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 typedef Benchmark INHERITED; | 307 typedef Benchmark INHERITED; |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 // Partial clear | 310 // Partial clear |
| 311 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kScale_Type, | 311 DEF_BENCH(return new GameBench(GameBench::kScale_Type, GameBench::kPartial_Clear
);) |
| 312 GameBench::kPartial_Clear)); ) | 312 DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kPartial_C
lear);) |
| 313 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, | 313 DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kPartial_C
lear, true);) |
| 314 GameBench::kPartial_Clear)); ) | 314 DEF_BENCH(return new GameBench(GameBench::kRotate_Type, GameBench::kPartial_Clea
r);) |
| 315 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, | |
| 316 GameBench::kPartial_Clear, true)); ) | |
| 317 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kRotate_Type, | |
| 318 GameBench::kPartial_Clear)); ) | |
| 319 | 315 |
| 320 // Full clear | 316 // Full clear |
| 321 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kScale_Type, | 317 DEF_BENCH(return new GameBench(GameBench::kScale_Type, GameBench::kFull_Clear);) |
| 322 GameBench::kFull_Clear)); ) | 318 DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kFull_Clea
r);) |
| 323 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, | 319 DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kFull_Clea
r, true);) |
| 324 GameBench::kFull_Clear)); ) | 320 DEF_BENCH(return new GameBench(GameBench::kRotate_Type, GameBench::kFull_Clear);
) |
| 325 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, | |
| 326 GameBench::kFull_Clear, true)); ) | |
| 327 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kRotate_Type, | |
| 328 GameBench::kFull_Clear)); ) | |
| 329 | 321 |
| 330 // Atlased | 322 // Atlased |
| 331 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, | 323 DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kFull_Clea
r, false, true);) |
| 332 GameBench::kFull_Clear, false, true)
); ) | 324 DEF_BENCH(return new GameBench( |
| 333 DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, | 325 GameBench::kTranslate_Type, GameBench::kFull_Clear, fal
se, true, true);) |
| 334 GameBench::kFull_Clear, false, true,
true)); ) | |
| OLD | NEW |