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

Side by Side Diff: samplecode/SampleApp.h

Issue 631943002: add surfaceprops to SkWindow, and 'D' to toggle distancefieldfonts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « include/views/SkWindow.h ('k') | 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/views/SkWindow.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698