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 } | 111 } |
112 if (nullptr == surface) { | 112 if (nullptr == surface) { |
113 surface = this->INHERITED::createSurface(); | 113 surface = this->INHERITED::createSurface(); |
114 } | 114 } |
115 return surface; | 115 return surface; |
116 } | 116 } |
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 toggleRendering(); | 122 void toggleRendering(); |
122 void toggleSlideshow(); | 123 void toggleSlideshow(); |
123 void toggleFPS(); | 124 void toggleFPS(); |
124 void showOverview(); | 125 void showOverview(); |
125 void toggleDistanceFieldFonts(); | 126 void toggleDistanceFieldFonts(); |
126 | 127 |
127 GrContext* getGrContext() const { return fDevManager->getGrContext(); } | 128 GrContext* getGrContext() const { return fDevManager->getGrContext(); } |
128 | 129 |
129 void setZoomCenter(float x, float y); | 130 void setZoomCenter(float x, float y); |
130 void changeZoomLevel(float delta); | 131 void changeZoomLevel(float delta); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void postAnimatingEvent(); | 230 void postAnimatingEvent(); |
230 int findByTitle(const char*); | 231 int findByTitle(const char*); |
231 void listTitles(); | 232 void listTitles(); |
232 SkSize tileSize() const; | 233 SkSize tileSize() const; |
233 bool sendAnimatePulse(); | 234 bool sendAnimatePulse(); |
234 | 235 |
235 typedef SkOSWindow INHERITED; | 236 typedef SkOSWindow INHERITED; |
236 }; | 237 }; |
237 | 238 |
238 #endif | 239 #endif |
OLD | NEW |