OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |