| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 return surface; | 111 return surface; |
| 112 } | 112 } |
| 113 | 113 |
| 114 virtual void draw(SkCanvas*) SK_OVERRIDE; | 114 virtual void draw(SkCanvas*) SK_OVERRIDE; |
| 115 | 115 |
| 116 void setDeviceType(DeviceType type); | 116 void setDeviceType(DeviceType type); |
| 117 void toggleRendering(); | 117 void toggleRendering(); |
| 118 void toggleSlideshow(); | 118 void toggleSlideshow(); |
| 119 void toggleFPS(); | 119 void toggleFPS(); |
| 120 void showOverview(); | 120 void showOverview(); |
| 121 void toggleDistanceFieldFonts(); |
| 121 | 122 |
| 122 GrContext* getGrContext() const { return fDevManager->getGrContext(); } | 123 GrContext* getGrContext() const { return fDevManager->getGrContext(); } |
| 123 | 124 |
| 124 void setZoomCenter(float x, float y); | 125 void setZoomCenter(float x, float y); |
| 125 void changeZoomLevel(float delta); | 126 void changeZoomLevel(float delta); |
| 126 bool nextSample(); | 127 bool nextSample(); |
| 127 bool previousSample(); | 128 bool previousSample(); |
| 128 bool goToSample(int i); | 129 bool goToSample(int i); |
| 129 SkString getSampleTitle(int i); | 130 SkString getSampleTitle(int i); |
| 130 int sampleCount(); | 131 int sampleCount(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 void postAnimatingEvent(); | 236 void postAnimatingEvent(); |
| 236 void installDrawFilter(SkCanvas*); | 237 void installDrawFilter(SkCanvas*); |
| 237 int findByTitle(const char*); | 238 int findByTitle(const char*); |
| 238 void listTitles(); | 239 void listTitles(); |
| 239 SkSize tileSize() const; | 240 SkSize tileSize() const; |
| 240 | 241 |
| 241 typedef SkOSWindow INHERITED; | 242 typedef SkOSWindow INHERITED; |
| 242 }; | 243 }; |
| 243 | 244 |
| 244 #endif | 245 #endif |
| OLD | NEW |