OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Skia | 2 * Copyright 2011 Skia |
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 SampleApp_DEFINED | 8 #ifndef SampleApp_DEFINED |
9 #define SampleApp_DEFINED | 9 #define SampleApp_DEFINED |
10 | 10 |
11 #include "SkOSMenu.h" | 11 #include "SkOSMenu.h" |
12 #include "SkPath.h" | 12 #include "SkPath.h" |
13 #include "SkPicture.h" | 13 #include "SkPicture.h" |
14 #include "SkPictureRecorder.h" | 14 #include "SkPictureRecorder.h" |
15 #include "SkScalar.h" | 15 #include "SkScalar.h" |
16 #include "SkTDArray.h" | 16 #include "SkTDArray.h" |
17 #include "SkTouchGesture.h" | 17 #include "SkTouchGesture.h" |
18 #include "SkWindow.h" | 18 #include "SkWindow.h" |
| 19 #include "timer/Timer.h" |
19 | 20 |
20 class GrContext; | 21 class GrContext; |
21 class GrRenderTarget; | 22 class GrRenderTarget; |
22 | 23 |
23 class SkCanvas; | 24 class SkCanvas; |
24 class SkData; | 25 class SkData; |
25 class SkDeferredCanvas; | 26 class SkDeferredCanvas; |
26 class SkDocument; | 27 class SkDocument; |
27 class SkEvent; | 28 class SkEvent; |
28 class SkTypeface; | 29 class SkTypeface; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 bool fSaveToPdf; | 177 bool fSaveToPdf; |
177 bool fSaveToSKP; | 178 bool fSaveToSKP; |
178 SkAutoTUnref<SkDocument> fPDFDocument; | 179 SkAutoTUnref<SkDocument> fPDFDocument; |
179 | 180 |
180 bool fUseClip; | 181 bool fUseClip; |
181 bool fAnimating; | 182 bool fAnimating; |
182 bool fRotate; | 183 bool fRotate; |
183 bool fPerspAnim; | 184 bool fPerspAnim; |
184 bool fRequestGrabImage; | 185 bool fRequestGrabImage; |
185 bool fMeasureFPS; | 186 bool fMeasureFPS; |
186 SkMSec fMeasureFPS_Time; | 187 WallTimer fTimer; |
187 SkMSec fMeasureFPS_StartTime; | 188 double fMeasureFPS_Time; |
188 bool fMagnify; | 189 bool fMagnify; |
189 int fTilingMode; | 190 int fTilingMode; |
190 | 191 |
191 | 192 |
192 SkOSMenu::TriState fPipeState; // Mixed uses a tiled pipe | 193 SkOSMenu::TriState fPipeState; // Mixed uses a tiled pipe |
193 // On uses a normal pipe | 194 // On uses a normal pipe |
194 // Off uses no pipe | 195 // Off uses no pipe |
195 int fUsePipeMenuItemID; | 196 int fUsePipeMenuItemID; |
196 | 197 |
197 // The following are for the 'fatbits' drawing | 198 // The following are for the 'fatbits' drawing |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void postAnimatingEvent(); | 233 void postAnimatingEvent(); |
233 int findByTitle(const char*); | 234 int findByTitle(const char*); |
234 void listTitles(); | 235 void listTitles(); |
235 SkSize tileSize() const; | 236 SkSize tileSize() const; |
236 bool sendAnimatePulse(); | 237 bool sendAnimatePulse(); |
237 | 238 |
238 typedef SkOSWindow INHERITED; | 239 typedef SkOSWindow INHERITED; |
239 }; | 240 }; |
240 | 241 |
241 #endif | 242 #endif |
OLD | NEW |