Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: samplecode/SampleApp.h

Issue 1834243002: Add 'P' to SampleApp to cycle through pixel geometries. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | samplecode/SampleApp.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | samplecode/SampleApp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698