| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkRect.h" | 14 #include "SkRect.h" |
| 14 #include "SkString.h" | 15 #include "SkString.h" |
| 15 | 16 |
| 16 // This is designed to emulate about 4 screens of textual content | 17 // This is designed to emulate about 4 screens of textual content |
| 17 | 18 |
| 18 | 19 |
| 19 class PicturePlaybackBench : public SkBenchmark { | 20 class PicturePlaybackBench : public SkBenchmark { |
| 20 public: | 21 public: |
| 21 PicturePlaybackBench(const char name[]) { | 22 PicturePlaybackBench(const char name[]) { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 bool fDrawPosH; | 132 bool fDrawPosH; |
| 132 typedef PicturePlaybackBench INHERITED; | 133 typedef PicturePlaybackBench INHERITED; |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 | 136 |
| 136 /////////////////////////////////////////////////////////////////////////////// | 137 /////////////////////////////////////////////////////////////////////////////// |
| 137 | 138 |
| 138 DEF_BENCH( return new TextPlaybackBench(); ) | 139 DEF_BENCH( return new TextPlaybackBench(); ) |
| 139 DEF_BENCH( return new PosTextPlaybackBench(true); ) | 140 DEF_BENCH( return new PosTextPlaybackBench(true); ) |
| 140 DEF_BENCH( return new PosTextPlaybackBench(false); ) | 141 DEF_BENCH( return new PosTextPlaybackBench(false); ) |
| OLD | NEW |