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

Side by Side Diff: samplecode/SampleApp.h

Issue 214953003: split SkPictureRecorder out of SkPicture (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: update to ToT (again) Created 6 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 | Annotate | Revision Log
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
11 #include "SkOSMenu.h" 11 #include "SkOSMenu.h"
12 #include "SkPath.h" 12 #include "SkPath.h"
13 #include "SkPicture.h"
13 #include "SkScalar.h" 14 #include "SkScalar.h"
14 #include "SkTDArray.h" 15 #include "SkTDArray.h"
15 #include "SkTouchGesture.h" 16 #include "SkTouchGesture.h"
16 #include "SkWindow.h" 17 #include "SkWindow.h"
17 18
18 class GrContext; 19 class GrContext;
19 class GrRenderTarget; 20 class GrRenderTarget;
20 21
21 class SkCanvas; 22 class SkCanvas;
22 class SkData; 23 class SkData;
23 class SkEvent; 24 class SkEvent;
24 class SkPicture;
25 class SkTypeface; 25 class SkTypeface;
26 class SkViewFactory; 26 class SkViewFactory;
27 27
28 class SampleWindow : public SkOSWindow { 28 class SampleWindow : public SkOSWindow {
29 SkTDArray<const SkViewFactory*> fSamples; 29 SkTDArray<const SkViewFactory*> fSamples;
30 public: 30 public:
31 enum DeviceType { 31 enum DeviceType {
32 kRaster_DeviceType, 32 kRaster_DeviceType,
33 kPicture_DeviceType, 33 kPicture_DeviceType,
34 #if SK_SUPPORT_GPU 34 #if SK_SUPPORT_GPU
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #ifdef SAMPLE_PDF_FILE_VIEWER 161 #ifdef SAMPLE_PDF_FILE_VIEWER
162 void registerPdfFileViewerSamples(char** argv, int argc); 162 void registerPdfFileViewerSamples(char** argv, int argc);
163 #endif // SAMPLE_PDF_FILE_VIEWER 163 #endif // SAMPLE_PDF_FILE_VIEWER
164 164
165 165
166 private: 166 private:
167 class DefaultDeviceManager; 167 class DefaultDeviceManager;
168 168
169 int fCurrIndex; 169 int fCurrIndex;
170 170
171 SkPicture* fPicture; 171 SkPictureRecorder fRecorder;
172 SkPath fClipPath; 172 SkPath fClipPath;
173 173
174 SkTouchGesture fGesture; 174 SkTouchGesture fGesture;
175 SkScalar fZoomLevel; 175 SkScalar fZoomLevel;
176 SkScalar fZoomScale; 176 SkScalar fZoomScale;
177 177
178 DeviceType fDeviceType; 178 DeviceType fDeviceType;
179 DeviceManager* fDevManager; 179 DeviceManager* fDevManager;
180 180
181 bool fSaveToPdf; 181 bool fSaveToPdf;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void postAnimatingEvent(); 242 void postAnimatingEvent();
243 void installDrawFilter(SkCanvas*); 243 void installDrawFilter(SkCanvas*);
244 int findByTitle(const char*); 244 int findByTitle(const char*);
245 void listTitles(); 245 void listTitles();
246 SkSize tileSize() const; 246 SkSize tileSize() const;
247 247
248 typedef SkOSWindow INHERITED; 248 typedef SkOSWindow INHERITED;
249 }; 249 };
250 250
251 #endif 251 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleAll.cpp ('k') | samplecode/SampleApp.cpp » ('j') | samplecode/SampleTiling.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698