| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 void draw(SkCanvas*) override; | 118 void draw(SkCanvas*) override; |
| 119 | 119 |
| 120 void setDeviceType(DeviceType type); | 120 void setDeviceType(DeviceType type); |
| 121 void setDeviceColorType(SkColorType, SkColorProfileType); | 121 void setDeviceColorType(SkColorType, SkColorProfileType); |
| 122 void toggleRendering(); | 122 void toggleRendering(); |
| 123 void toggleSlideshow(); | 123 void toggleSlideshow(); |
| 124 void toggleFPS(); | 124 void toggleFPS(); |
| 125 void showOverview(); | 125 void showOverview(); |
| 126 void toggleDistanceFieldFonts(); | 126 void toggleDistanceFieldFonts(); |
| 127 void setPixelGeometry(int pixelGeometryIndex); |
| 127 | 128 |
| 128 GrContext* getGrContext() const { return fDevManager->getGrContext(); } | 129 GrContext* getGrContext() const { return fDevManager->getGrContext(); } |
| 129 | 130 |
| 130 void setZoomCenter(float x, float y); | 131 void setZoomCenter(float x, float y); |
| 131 void changeZoomLevel(float delta); | 132 void changeZoomLevel(float delta); |
| 132 void changeOffset(SkVector delta); | 133 void changeOffset(SkVector delta); |
| 133 bool nextSample(); | 134 bool nextSample(); |
| 134 bool previousSample(); | 135 bool previousSample(); |
| 135 bool goToSample(int i); | 136 bool goToSample(int i); |
| 136 SkString getSampleTitle(int i); | 137 SkString getSampleTitle(int i); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 int fMouseX, fMouseY; | 200 int fMouseX, fMouseY; |
| 200 int fFatBitsScale; | 201 int fFatBitsScale; |
| 201 // Used by the text showing position and color values. | 202 // Used by the text showing position and color values. |
| 202 SkTypeface* fTypeface; | 203 SkTypeface* fTypeface; |
| 203 bool fShowZoomer; | 204 bool fShowZoomer; |
| 204 | 205 |
| 205 SkOSMenu::TriState fLCDState; | 206 SkOSMenu::TriState fLCDState; |
| 206 SkOSMenu::TriState fAAState; | 207 SkOSMenu::TriState fAAState; |
| 207 SkOSMenu::TriState fSubpixelState; | 208 SkOSMenu::TriState fSubpixelState; |
| 208 int fHintingState; | 209 int fHintingState; |
| 210 int fPixelGeometryIndex; |
| 209 int fFilterQualityIndex; | 211 int fFilterQualityIndex; |
| 210 unsigned fFlipAxis; | 212 unsigned fFlipAxis; |
| 211 | 213 |
| 212 int fMSAASampleCount; | 214 int fMSAASampleCount; |
| 213 | 215 |
| 214 SkScalar fZoomCenterX, fZoomCenterY; | 216 SkScalar fZoomCenterX, fZoomCenterY; |
| 215 | 217 |
| 216 //Stores global settings | 218 //Stores global settings |
| 217 SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu | 219 SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu |
| 218 //Stores slide specific settings | 220 //Stores slide specific settings |
| (...skipping 12 matching lines...) Expand all Loading... |
| 231 void postAnimatingEvent(); | 233 void postAnimatingEvent(); |
| 232 int findByTitle(const char*); | 234 int findByTitle(const char*); |
| 233 void listTitles(); | 235 void listTitles(); |
| 234 SkSize tileSize() const; | 236 SkSize tileSize() const; |
| 235 bool sendAnimatePulse(); | 237 bool sendAnimatePulse(); |
| 236 | 238 |
| 237 typedef SkOSWindow INHERITED; | 239 typedef SkOSWindow INHERITED; |
| 238 }; | 240 }; |
| 239 | 241 |
| 240 #endif | 242 #endif |
| OLD | NEW |