Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: samplecode/SampleApp.h

Issue 1288473002: Add high resolution WallTimer to SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698