OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 "SkImage.h" | 10 #include "SkImage.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 fSurface.reset(nullptr); | 63 fSurface.reset(nullptr); |
64 } | 64 } |
65 | 65 |
66 private: | 66 private: |
67 typedef Benchmark INHERITED; | 67 typedef Benchmark INHERITED; |
68 }; | 68 }; |
69 | 69 |
70 // Build variants that exercise the width and heights being even or odd at each
level, as the | 70 // Build variants that exercise the width and heights being even or odd at each
level, as the |
71 // impl specializes on each of these. | 71 // impl specializes on each of these. |
72 // | 72 // |
73 DEF_BENCH( return new GrMipMapBench(511, 1023); ) | 73 DEF_BENCH( return new GrMipMapBench(511, 511); ) |
74 DEF_BENCH( return new GrMipMapBench(512, 511); ) | 74 DEF_BENCH( return new GrMipMapBench(512, 511); ) |
75 DEF_BENCH( return new GrMipMapBench(511, 512); ) | 75 DEF_BENCH( return new GrMipMapBench(511, 512); ) |
76 DEF_BENCH( return new GrMipMapBench(512, 512); ) | 76 DEF_BENCH( return new GrMipMapBench(512, 512); ) |
77 | 77 |
78 #endif | 78 #endif |
OLD | NEW |