OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "SkBenchmark.h" | 8 #include "SkBenchmark.h" |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 }; | 356 }; |
357 | 357 |
358 DEF_BENCH( return new BitmapBench(false, SkBitmap::kARGB_8888_Config); ) | 358 DEF_BENCH( return new BitmapBench(false, SkBitmap::kARGB_8888_Config); ) |
359 DEF_BENCH( return new BitmapBench(true, SkBitmap::kARGB_8888_Config); ) | 359 DEF_BENCH( return new BitmapBench(true, SkBitmap::kARGB_8888_Config); ) |
360 DEF_BENCH( return new BitmapBench(true, SkBitmap::kRGB_565_Config); ) | 360 DEF_BENCH( return new BitmapBench(true, SkBitmap::kRGB_565_Config); ) |
361 DEF_BENCH( return new BitmapBench(false, SkBitmap::kIndex8_Config); ) | 361 DEF_BENCH( return new BitmapBench(false, SkBitmap::kIndex8_Config); ) |
362 DEF_BENCH( return new BitmapBench(true, SkBitmap::kIndex8_Config); ) | 362 DEF_BENCH( return new BitmapBench(true, SkBitmap::kIndex8_Config); ) |
363 DEF_BENCH( return new BitmapBench(true, SkBitmap::kARGB_8888_Config, true, true)
; ) | 363 DEF_BENCH( return new BitmapBench(true, SkBitmap::kARGB_8888_Config, true, true)
; ) |
364 DEF_BENCH( return new BitmapBench(true, SkBitmap::kARGB_8888_Config, true, false
); ) | 364 DEF_BENCH( return new BitmapBench(true, SkBitmap::kARGB_8888_Config, true, false
); ) |
365 | 365 |
| 366 /* TODO(mtklein): figure out why these are broken (suspect caching is interferin
g) and restore |
366 // scale filter -> S32_opaque_D32_filter_DX_{SSE2,SSSE3} and Fact9 is also for S
32_D16_filter_DX_SSE2 | 367 // scale filter -> S32_opaque_D32_filter_DX_{SSE2,SSSE3} and Fact9 is also for S
32_D16_filter_DX_SSE2 |
367 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kBilerp_Flag); ) | 368 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kBilerp_Flag); ) |
368 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, false
, false, kScale_Flag | kBilerp_Flag); ) | 369 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, false
, false, kScale_Flag | kBilerp_Flag); ) |
369 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
true, kScale_Flag | kBilerp_Flag); ) | 370 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
true, kScale_Flag | kBilerp_Flag); ) |
370 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
false, kScale_Flag | kBilerp_Flag); ) | 371 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
false, kScale_Flag | kBilerp_Flag); ) |
371 | 372 |
372 // scale rotate filter -> S32_opaque_D32_filter_DXDY_{SSE2,SSSE3} | 373 // scale rotate filter -> S32_opaque_D32_filter_DXDY_{SSE2,SSSE3} |
373 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) | 374 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) |
374 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, false
, false, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) | 375 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, false
, false, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) |
375 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
true, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) | 376 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
true, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) |
376 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
false, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) | 377 DEF_BENCH( return new FilterBitmapBench(true, SkBitmap::kARGB_8888_Config, true,
false, kScale_Flag | kRotate_Flag | kBilerp_Flag); ) |
377 | 378 |
378 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kBilerp_Flag | kBicubic_Flag); ) | 379 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kBilerp_Flag | kBicubic_Flag); ) |
379 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kRotate_Flag | kBilerp_Flag | kBicubic_Flag); ) | 380 DEF_BENCH( return new FilterBitmapBench(false, SkBitmap::kARGB_8888_Config, fals
e, false, kScale_Flag | kRotate_Flag | kBilerp_Flag | kBicubic_Flag); ) |
| 381 */ |
380 | 382 |
381 // source alpha tests -> S32A_Opaque_BlitRow32_{arm,neon} | 383 // source alpha tests -> S32A_Opaque_BlitRow32_{arm,neon} |
382 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kOpaque_Sou
rceAlpha, SkBitmap::kARGB_8888_Config); ) | 384 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kOpaque_Sou
rceAlpha, SkBitmap::kARGB_8888_Config); ) |
383 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kTransparen
t_SourceAlpha, SkBitmap::kARGB_8888_Config); ) | 385 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kTransparen
t_SourceAlpha, SkBitmap::kARGB_8888_Config); ) |
384 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kTwoStripes
_SourceAlpha, SkBitmap::kARGB_8888_Config); ) | 386 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kTwoStripes
_SourceAlpha, SkBitmap::kARGB_8888_Config); ) |
385 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kThreeStrip
es_SourceAlpha, SkBitmap::kARGB_8888_Config); ) | 387 DEF_BENCH( return new SourceAlphaBitmapBench(SourceAlphaBitmapBench::kThreeStrip
es_SourceAlpha, SkBitmap::kARGB_8888_Config); ) |
OLD | NEW |