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

Side by Side Diff: samplecode/SampleApp.h

Issue 108213004: Additional SampleApp tiling options. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Cleanup. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool fAnimating; 187 bool fAnimating;
188 bool fRotate; 188 bool fRotate;
189 SkScalar fRotateAnimTime; 189 SkScalar fRotateAnimTime;
190 bool fPerspAnim; 190 bool fPerspAnim;
191 SkScalar fPerspAnimTime; 191 SkScalar fPerspAnimTime;
192 bool fRequestGrabImage; 192 bool fRequestGrabImage;
193 bool fMeasureFPS; 193 bool fMeasureFPS;
194 SkMSec fMeasureFPS_Time; 194 SkMSec fMeasureFPS_Time;
195 SkMSec fMeasureFPS_StartTime; 195 SkMSec fMeasureFPS_StartTime;
196 bool fMagnify; 196 bool fMagnify;
197 SkISize fTileCount; 197 int fTilingMode;
198 198
199 199
200 SkOSMenu::TriState fPipeState; // Mixed uses a tiled pipe 200 SkOSMenu::TriState fPipeState; // Mixed uses a tiled pipe
201 // On uses a normal pipe 201 // On uses a normal pipe
202 // Off uses no pipe 202 // Off uses no pipe
203 int fUsePipeMenuItemID; 203 int fUsePipeMenuItemID;
204 204
205 // The following are for the 'fatbits' drawing 205 // The following are for the 'fatbits' drawing
206 // Latest position of the mouse. 206 // Latest position of the mouse.
207 int fMouseX, fMouseY; 207 int fMouseX, fMouseY;
208 int fFatBitsScale; 208 int fFatBitsScale;
209 // Used by the text showing position and color values. 209 // Used by the text showing position and color values.
210 SkTypeface* fTypeface; 210 SkTypeface* fTypeface;
211 bool fShowZoomer; 211 bool fShowZoomer;
212 212
213 SkOSMenu::TriState fLCDState; 213 SkOSMenu::TriState fLCDState;
214 SkOSMenu::TriState fAAState; 214 SkOSMenu::TriState fAAState;
215 SkOSMenu::TriState fFilterState; 215 SkOSMenu::TriState fFilterState;
216 SkOSMenu::TriState fSubpixelState; 216 SkOSMenu::TriState fSubpixelState;
217 int fHintingState; 217 int fHintingState;
218 SkOSMenu::TriState fTilingState;
219 unsigned fFlipAxis; 218 unsigned fFlipAxis;
220 219
221 int fMSAASampleCount; 220 int fMSAASampleCount;
222 221
223 int fScrollTestX, fScrollTestY; 222 int fScrollTestX, fScrollTestY;
224 SkScalar fZoomCenterX, fZoomCenterY; 223 SkScalar fZoomCenterX, fZoomCenterY;
225 224
226 //Stores global settings 225 //Stores global settings
227 SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu 226 SkOSMenu* fAppMenu; // We pass ownership to SkWindow, when we call addMenu
228 //Stores slide specific settings 227 //Stores slide specific settings
(...skipping 13 matching lines...) Expand all
242 void updateMatrix(); 241 void updateMatrix();
243 void postAnimatingEvent(); 242 void postAnimatingEvent();
244 void installDrawFilter(SkCanvas*); 243 void installDrawFilter(SkCanvas*);
245 int findByTitle(const char*); 244 int findByTitle(const char*);
246 void listTitles(); 245 void listTitles();
247 246
248 typedef SkOSWindow INHERITED; 247 typedef SkOSWindow INHERITED;
249 }; 248 };
250 249
251 #endif 250 #endif
OLDNEW
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698