| 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 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 SkPath fClipPath; | 167 SkPath fClipPath; |
| 168 | 168 |
| 169 SkTouchGesture fGesture; | 169 SkTouchGesture fGesture; |
| 170 SkScalar fZoomLevel; | 170 SkScalar fZoomLevel; |
| 171 SkScalar fZoomScale; | 171 SkScalar fZoomScale; |
| 172 | 172 |
| 173 DeviceType fDeviceType; | 173 DeviceType fDeviceType; |
| 174 DeviceManager* fDevManager; | 174 DeviceManager* fDevManager; |
| 175 | 175 |
| 176 bool fSaveToPdf; | 176 bool fSaveToPdf; |
| 177 bool fSaveToSKP; |
| 177 SkAutoTUnref<SkDocument> fPDFDocument; | 178 SkAutoTUnref<SkDocument> fPDFDocument; |
| 178 | 179 |
| 179 bool fUseClip; | 180 bool fUseClip; |
| 180 bool fAnimating; | 181 bool fAnimating; |
| 181 bool fRotate; | 182 bool fRotate; |
| 182 bool fPerspAnim; | 183 bool fPerspAnim; |
| 183 bool fRequestGrabImage; | 184 bool fRequestGrabImage; |
| 184 bool fMeasureFPS; | 185 bool fMeasureFPS; |
| 185 SkMSec fMeasureFPS_Time; | 186 SkMSec fMeasureFPS_Time; |
| 186 SkMSec fMeasureFPS_StartTime; | 187 SkMSec fMeasureFPS_StartTime; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 211 int fMSAASampleCount; | 212 int fMSAASampleCount; |
| 212 | 213 |
| 213 int fScrollTestX, fScrollTestY; | 214 int fScrollTestX, fScrollTestY; |
| 214 SkScalar fZoomCenterX, fZoomCenterY; | 215 SkScalar fZoomCenterX, fZoomCenterY; |
| 215 | 216 |
| 216 //Stores global settings | 217 //Stores global settings |
| 217 SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu | 218 SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu |
| 218 //Stores slide specific settings | 219 //Stores slide specific settings |
| 219 SkOSMenu* fSlideMenu; // We pass ownership to SkWindow, when we call addMenu | 220 SkOSMenu* fSlideMenu; // We pass ownership to SkWindow, when we call addMenu |
| 220 | 221 |
| 221 int fTransitionNext; | |
| 222 int fTransitionPrev; | |
| 223 | |
| 224 void loadView(SkView*); | 222 void loadView(SkView*); |
| 225 void updateTitle(); | 223 void updateTitle(); |
| 226 bool getRawTitle(SkString*); | 224 bool getRawTitle(SkString*); |
| 227 | 225 |
| 228 bool zoomIn(); | 226 bool zoomIn(); |
| 229 bool zoomOut(); | 227 bool zoomOut(); |
| 230 void updatePointer(int x, int y); | 228 void updatePointer(int x, int y); |
| 231 void magnify(SkCanvas* canvas); | 229 void magnify(SkCanvas* canvas); |
| 232 void showZoomer(SkCanvas* canvas); | 230 void showZoomer(SkCanvas* canvas); |
| 233 void updateMatrix(); | 231 void updateMatrix(); |
| 234 void postAnimatingEvent(); | 232 void postAnimatingEvent(); |
| 235 int findByTitle(const char*); | 233 int findByTitle(const char*); |
| 236 void listTitles(); | 234 void listTitles(); |
| 237 SkSize tileSize() const; | 235 SkSize tileSize() const; |
| 238 bool sendAnimatePulse(); | 236 bool sendAnimatePulse(); |
| 239 | 237 |
| 240 typedef SkOSWindow INHERITED; | 238 typedef SkOSWindow INHERITED; |
| 241 }; | 239 }; |
| 242 | 240 |
| 243 #endif | 241 #endif |
| OLD | NEW |