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 | 7 |
8 #ifndef PictureBenchmark_DEFINED | 8 #ifndef PictureBenchmark_DEFINED |
9 #define PictureBenchmark_DEFINED | 9 #define PictureBenchmark_DEFINED |
10 | 10 |
11 #include "PictureRenderer.h" | 11 #include "PictureRenderer.h" |
12 #include "PictureResultsWriter.h" | 12 #include "PictureResultsWriter.h" |
13 #include "SkTypes.h" | 13 #include "SkTypes.h" |
14 #include "TimerData.h" | 14 #include "TimerData.h" |
15 | 15 |
16 class BenchTimer; | |
17 class SkPicture; | 16 class SkPicture; |
| 17 class Timer; |
18 | 18 |
19 namespace sk_tools { | 19 namespace sk_tools { |
20 | 20 |
21 class PictureBenchmark { | 21 class PictureBenchmark { |
22 public: | 22 public: |
23 PictureBenchmark(); | 23 PictureBenchmark(); |
24 | 24 |
25 ~PictureBenchmark(); | 25 ~PictureBenchmark(); |
26 | 26 |
27 /** | 27 /** |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 int fRepeats; | 60 int fRepeats; |
61 PictureRenderer* fRenderer; | 61 PictureRenderer* fRenderer; |
62 TimerData::Result fTimerResult; | 62 TimerData::Result fTimerResult; |
63 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values | 63 uint32_t fTimerTypes; // bitfield of TimerData::TimerFlags values |
64 bool fTimeIndividualTiles; | 64 bool fTimeIndividualTiles; |
65 bool fPurgeDecodedTex; | 65 bool fPurgeDecodedTex; |
66 bool fPreprocess; | 66 bool fPreprocess; |
67 | 67 |
68 PictureResultsWriter* fWriter; | 68 PictureResultsWriter* fWriter; |
69 | 69 |
70 BenchTimer* setupTimer(bool useGLTimer = true); | 70 Timer* setupTimer(bool useGLTimer = true); |
71 }; | 71 }; |
72 | 72 |
73 } | 73 } |
74 | 74 |
75 #endif // PictureBenchmark_DEFINED | 75 #endif // PictureBenchmark_DEFINED |
OLD | NEW |