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

Side by Side Diff: samplecode/SampleApp.h

Issue 22978012: Split SkDevice into SkBaseDevice and SkBitmapDevice (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Updating to ToT (10994) Created 7 years, 3 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
« no previous file with comments | « include/utils/SkDeferredCanvas.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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 default: 54 default:
55 return false; 55 return false;
56 } 56 }
57 #endif // SK_SUPPORT_GPU 57 #endif // SK_SUPPORT_GPU
58 return false; 58 return false;
59 } 59 }
60 60
61 /** 61 /**
62 * SampleApp ports can subclass this manager class if they want to: 62 * SampleApp ports can subclass this manager class if they want to:
63 * * filter the types of devices supported 63 * * filter the types of devices supported
64 * * customize plugging of SkDevice objects into an SkCanvas 64 * * customize plugging of SkBaseDevice objects into an SkCanvas
65 * * customize publishing the results of draw to the OS window 65 * * customize publishing the results of draw to the OS window
66 * * manage GrContext / GrRenderTarget lifetimes 66 * * manage GrContext / GrRenderTarget lifetimes
67 */ 67 */
68 class DeviceManager : public SkRefCnt { 68 class DeviceManager : public SkRefCnt {
69 public: 69 public:
70 SK_DECLARE_INST_COUNT(DeviceManager) 70 SK_DECLARE_INST_COUNT(DeviceManager)
71 71
72 virtual void setUpBackend(SampleWindow* win, int msaaSampleCount) = 0; 72 virtual void setUpBackend(SampleWindow* win, int msaaSampleCount) = 0;
73 73
74 virtual void tearDownBackend(SampleWindow* win) = 0; 74 virtual void tearDownBackend(SampleWindow* win) = 0;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void updateMatrix(); 242 void updateMatrix();
243 void postAnimatingEvent(); 243 void postAnimatingEvent();
244 void installDrawFilter(SkCanvas*); 244 void installDrawFilter(SkCanvas*);
245 int findByTitle(const char*); 245 int findByTitle(const char*);
246 void listTitles(); 246 void listTitles();
247 247
248 typedef SkOSWindow INHERITED; 248 typedef SkOSWindow INHERITED;
249 }; 249 };
250 250
251 #endif 251 #endif
OLDNEW
« no previous file with comments | « include/utils/SkDeferredCanvas.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698