OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef GrCaps_DEFINED | 8 #ifndef GrCaps_DEFINED |
9 #define GrCaps_DEFINED | 9 #define GrCaps_DEFINED |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 bool fPathRenderingSupport : 1; | 93 bool fPathRenderingSupport : 1; |
94 bool fDstReadInShaderSupport : 1; | 94 bool fDstReadInShaderSupport : 1; |
95 bool fDualSourceBlendingSupport : 1; | 95 bool fDualSourceBlendingSupport : 1; |
96 bool fMixedSamplesSupport : 1; | 96 bool fMixedSamplesSupport : 1; |
97 bool fProgrammableSampleLocationsSupport : 1; | 97 bool fProgrammableSampleLocationsSupport : 1; |
98 | 98 |
99 bool fShaderPrecisionVaries; | 99 bool fShaderPrecisionVaries; |
100 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount]; | 100 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount]; |
101 | 101 |
102 private: | 102 private: |
| 103 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
103 typedef SkRefCnt INHERITED; | 104 typedef SkRefCnt INHERITED; |
104 }; | 105 }; |
105 | 106 |
106 /** | 107 /** |
107 * Represents the capabilities of a GrContext. | 108 * Represents the capabilities of a GrContext. |
108 */ | 109 */ |
109 class GrCaps : public SkRefCnt { | 110 class GrCaps : public SkRefCnt { |
110 public: | 111 public: |
111 GrCaps(const GrContextOptions&); | 112 GrCaps(const GrContextOptions&); |
112 | 113 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 264 |
264 int fMaxRenderTargetSize; | 265 int fMaxRenderTargetSize; |
265 int fMaxTextureSize; | 266 int fMaxTextureSize; |
266 int fMaxSampleCount; | 267 int fMaxSampleCount; |
267 | 268 |
268 // The first entry for each config is without msaa and the second is with. | 269 // The first entry for each config is without msaa and the second is with. |
269 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 270 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
270 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 271 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
271 | 272 |
272 private: | 273 private: |
| 274 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 275 |
273 bool fSupressPrints : 1; | 276 bool fSupressPrints : 1; |
274 bool fDrawPathMasksToCompressedTextureSupport : 1; | 277 bool fDrawPathMasksToCompressedTextureSupport : 1; |
275 | 278 |
276 typedef SkRefCnt INHERITED; | 279 typedef SkRefCnt INHERITED; |
277 }; | 280 }; |
278 | 281 |
279 #endif | 282 #endif |
OLD | NEW |