| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2014 Google Inc. | 2  * Copyright 2014 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 "SkGradientShader.h" | 10 #include "SkGradientShader.h" | 
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 162                     canvas->drawPath(fPaths[j], paint); | 162                     canvas->drawPath(fPaths[j], paint); | 
| 163                 } | 163                 } | 
| 164             } | 164             } | 
| 165         } | 165         } | 
| 166     } | 166     } | 
| 167 | 167 | 
| 168 private: | 168 private: | 
| 169     typedef Benchmark INHERITED; | 169     typedef Benchmark INHERITED; | 
| 170 }; | 170 }; | 
| 171 | 171 | 
| 172 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 172 DEF_BENCH(return new AlternatingColorPatternBench(kWhite_ColorPattern, | 
| 173                              (kWhite_ColorPattern, kWhite_ColorPattern, | 173                                                   kWhite_ColorPattern, | 
| 174                               kPath_DrawType)); ) | 174                                                   kPath_DrawType);) | 
| 175 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 175 DEF_BENCH(return new AlternatingColorPatternBench(kBlue_ColorPattern, | 
| 176                              (kBlue_ColorPattern, kBlue_ColorPattern, | 176                                                   kBlue_ColorPattern, | 
| 177                               kPath_DrawType)); ) | 177                                                   kPath_DrawType);) | 
| 178 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 178 DEF_BENCH(return new AlternatingColorPatternBench(kWhite_ColorPattern, | 
| 179                              (kWhite_ColorPattern, kBlue_ColorPattern, | 179                                                   kBlue_ColorPattern, | 
| 180                               kPath_DrawType)); ) | 180                                                   kPath_DrawType);) | 
| 181 | 181 | 
| 182 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 182 DEF_BENCH(return new AlternatingColorPatternBench(kOpaqueBitmap_ColorPattern, | 
| 183                              (kOpaqueBitmap_ColorPattern, kOpaqueBitmap_ColorPat
     tern, | 183                                                   kOpaqueBitmap_ColorPattern, | 
| 184                               kPath_DrawType)); ) | 184                                                   kPath_DrawType);) | 
| 185 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 185 DEF_BENCH(return new AlternatingColorPatternBench(kAlphaBitmap_ColorPattern, | 
| 186                              (kAlphaBitmap_ColorPattern, kAlphaBitmap_ColorPatte
     rn, | 186                                                   kAlphaBitmap_ColorPattern, | 
| 187                               kPath_DrawType)); ) | 187                                                   kPath_DrawType);) | 
| 188 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 188 DEF_BENCH(return new AlternatingColorPatternBench(kOpaqueBitmap_ColorPattern, | 
| 189                              (kOpaqueBitmap_ColorPattern, kAlphaBitmap_ColorPatt
     ern, | 189                                                   kAlphaBitmap_ColorPattern, | 
| 190                               kPath_DrawType)); ) | 190                                                   kPath_DrawType);) | 
| 191 | 191 | 
| 192 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 192 DEF_BENCH(return new AlternatingColorPatternBench(kOpaqueBitmap_ColorPattern, | 
| 193                              (kOpaqueBitmap_ColorPattern, kOpaqueBitmap_ColorPat
     tern, | 193                                                   kOpaqueBitmap_ColorPattern, | 
| 194                               kRect_DrawType)); ) | 194                                                   kRect_DrawType);) | 
| 195 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 195 DEF_BENCH(return new AlternatingColorPatternBench(kAlphaBitmap_ColorPattern, | 
| 196                              (kAlphaBitmap_ColorPattern, kAlphaBitmap_ColorPatte
     rn, | 196                                                   kAlphaBitmap_ColorPattern, | 
| 197                               kRect_DrawType)); ) | 197                                                   kRect_DrawType);) | 
| 198 DEF_BENCH( return SkNEW_ARGS(AlternatingColorPatternBench, | 198 DEF_BENCH(return new AlternatingColorPatternBench(kOpaqueBitmap_ColorPattern, | 
| 199                              (kOpaqueBitmap_ColorPattern, kAlphaBitmap_ColorPatt
     ern, | 199                                                   kAlphaBitmap_ColorPattern, | 
| 200                               kRect_DrawType)); ) | 200                                                   kRect_DrawType);) | 
| 201 |  | 
| OLD | NEW | 
|---|