OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #include "Benchmark.h" | 7 #include "Benchmark.h" |
9 #include "SkBitmap.h" | 8 #include "SkBitmap.h" |
10 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
11 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 canvas->drawRect(r, paint); | 383 canvas->drawRect(r, paint); |
385 } | 384 } |
386 } | 385 } |
387 | 386 |
388 private: | 387 private: |
389 typedef Benchmark INHERITED; | 388 typedef Benchmark INHERITED; |
390 }; | 389 }; |
391 | 390 |
392 DEF_BENCH( return new Gradient2Bench(false); ) | 391 DEF_BENCH( return new Gradient2Bench(false); ) |
393 DEF_BENCH( return new Gradient2Bench(true); ) | 392 DEF_BENCH( return new Gradient2Bench(true); ) |
OLD | NEW |