| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #include "SkBenchmark.h" | 7 #include "SkBenchmark.h" |
| 8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
| 9 #include "SkColor.h" | 9 #include "SkColor.h" |
| 10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
| 11 #include "SkPicture.h" | 11 #include "SkPicture.h" |
| 12 #include "SkPictureRecorder.h" |
| 12 #include "SkPoint.h" | 13 #include "SkPoint.h" |
| 13 #include "SkRandom.h" | 14 #include "SkRandom.h" |
| 14 #include "SkRect.h" | 15 #include "SkRect.h" |
| 15 #include "SkString.h" | 16 #include "SkString.h" |
| 16 | 17 |
| 17 class PictureRecordBench : public SkBenchmark { | 18 class PictureRecordBench : public SkBenchmark { |
| 18 public: | 19 public: |
| 19 PictureRecordBench(const char name[]) { | 20 PictureRecordBench(const char name[]) { |
| 20 fName.printf("picture_record_%s", name); | 21 fName.printf("picture_record_%s", name); |
| 21 } | 22 } |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 private: | 169 private: |
| 169 SkPaint fPaint [ObjCount]; | 170 SkPaint fPaint [ObjCount]; |
| 170 typedef PictureRecordBench INHERITED; | 171 typedef PictureRecordBench INHERITED; |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 /////////////////////////////////////////////////////////////////////////////// | 174 /////////////////////////////////////////////////////////////////////////////// |
| 174 | 175 |
| 175 DEF_BENCH( return new DictionaryRecordBench(); ) | 176 DEF_BENCH( return new DictionaryRecordBench(); ) |
| 176 DEF_BENCH( return new UniquePaintDictionaryRecordBench(); ) | 177 DEF_BENCH( return new UniquePaintDictionaryRecordBench(); ) |
| 177 DEF_BENCH( return new RecurringPaintDictionaryRecordBench(); ) | 178 DEF_BENCH( return new RecurringPaintDictionaryRecordBench(); ) |
| OLD | NEW |