| 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 "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 DEF_BENCH( return new DashLineBench(p, SK_Scalar1, true); ) | 409 DEF_BENCH( return new DashLineBench(p, SK_Scalar1, true); ) |
| 410 DEF_BENCH( return new DashLineBench(p, 2 * SK_Scalar1, true); ) | 410 DEF_BENCH( return new DashLineBench(p, 2 * SK_Scalar1, true); ) |
| 411 | 411 |
| 412 DEF_BENCH( return new DrawPointsDashingBench(p, 1, 1, false); ) | 412 DEF_BENCH( return new DrawPointsDashingBench(p, 1, 1, false); ) |
| 413 DEF_BENCH( return new DrawPointsDashingBench(p, 1, 1, true); ) | 413 DEF_BENCH( return new DrawPointsDashingBench(p, 1, 1, true); ) |
| 414 DEF_BENCH( return new DrawPointsDashingBench(p, 3, 1, false); ) | 414 DEF_BENCH( return new DrawPointsDashingBench(p, 3, 1, false); ) |
| 415 DEF_BENCH( return new DrawPointsDashingBench(p, 3, 1, true); ) | 415 DEF_BENCH( return new DrawPointsDashingBench(p, 3, 1, true); ) |
| 416 DEF_BENCH( return new DrawPointsDashingBench(p, 5, 5, false); ) | 416 DEF_BENCH( return new DrawPointsDashingBench(p, 5, 5, false); ) |
| 417 DEF_BENCH( return new DrawPointsDashingBench(p, 5, 5, true); ) | 417 DEF_BENCH( return new DrawPointsDashingBench(p, 5, 5, true); ) |
| 418 | 418 |
| 419 /* Disable the GiantDashBench for Android devices until we can better control |
| 420 * the memory usage. (https://code.google.com/p/skia/issues/detail?id=1430) |
| 421 */ |
| 422 #ifndef SK_BUILD_FOR_ANDROID |
| 419 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kHori_LineType, 0); ) | 423 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kHori_LineType, 0); ) |
| 420 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kVert_LineType, 0); ) | 424 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kVert_LineType, 0); ) |
| 421 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kDiag_LineType, 0); ) | 425 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kDiag_LineType, 0); ) |
| 422 | 426 |
| 423 // pass 2 to explicitly avoid any 1-is-the-same-as-hairline special casing | 427 // pass 2 to explicitly avoid any 1-is-the-same-as-hairline special casing |
| 424 | 428 |
| 425 // hori_2 is just too slow to enable at the moment | 429 // hori_2 is just too slow to enable at the moment |
| 426 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kHori_LineType, 2); ) | 430 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kHori_LineType, 2); ) |
| 427 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kVert_LineType, 2); ) | 431 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kVert_LineType, 2); ) |
| 428 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kDiag_LineType, 2); ) | 432 DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kDiag_LineType, 2); ) |
| 433 #endif |
| OLD | NEW |