| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 if (nullptr == surface) { | 110 if (nullptr == surface) { |
| 111 surface = this->INHERITED::createSurface(); | 111 surface = this->INHERITED::createSurface(); |
| 112 } | 112 } |
| 113 return surface; | 113 return surface; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void draw(SkCanvas*) override; | 116 void draw(SkCanvas*) override; |
| 117 | 117 |
| 118 void setDeviceType(DeviceType type); | 118 void setDeviceType(DeviceType type); |
| 119 void setDeviceColorType(SkColorType, sk_sp<SkColorSpace>); | 119 void setDeviceColorType(SkColorType, SkColorProfileType); |
| 120 void toggleRendering(); | 120 void toggleRendering(); |
| 121 void toggleSlideshow(); | 121 void toggleSlideshow(); |
| 122 void toggleFPS(); | 122 void toggleFPS(); |
| 123 void showOverview(); | 123 void showOverview(); |
| 124 void toggleDistanceFieldFonts(); | 124 void toggleDistanceFieldFonts(); |
| 125 void setPixelGeometry(int pixelGeometryIndex); | 125 void setPixelGeometry(int pixelGeometryIndex); |
| 126 | 126 |
| 127 GrContext* getGrContext() const { return fDevManager->getGrContext(); } | 127 GrContext* getGrContext() const { return fDevManager->getGrContext(); } |
| 128 | 128 |
| 129 void setZoomCenter(float x, float y); | 129 void setZoomCenter(float x, float y); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void postAnimatingEvent(); | 232 void postAnimatingEvent(); |
| 233 int findByTitle(const char*); | 233 int findByTitle(const char*); |
| 234 void listTitles(); | 234 void listTitles(); |
| 235 SkSize tileSize() const; | 235 SkSize tileSize() const; |
| 236 bool sendAnimatePulse(); | 236 bool sendAnimatePulse(); |
| 237 | 237 |
| 238 typedef SkOSWindow INHERITED; | 238 typedef SkOSWindow INHERITED; |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 #endif | 241 #endif |
| OLD | NEW |