| 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&) {}; | |
| 104 typedef SkRefCnt INHERITED; | 103 typedef SkRefCnt INHERITED; |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 /** | 106 /** |
| 108 * Represents the capabilities of a GrContext. | 107 * Represents the capabilities of a GrContext. |
| 109 */ | 108 */ |
| 110 class GrCaps : public SkRefCnt { | 109 class GrCaps : public SkRefCnt { |
| 111 public: | 110 public: |
| 112 GrCaps(const GrContextOptions&); | 111 GrCaps(const GrContextOptions&); |
| 113 | 112 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 int fMaxRenderTargetSize; | 267 int fMaxRenderTargetSize; |
| 269 int fMaxTextureSize; | 268 int fMaxTextureSize; |
| 270 int fMaxTileSize; | 269 int fMaxTileSize; |
| 271 int fMaxSampleCount; | 270 int fMaxSampleCount; |
| 272 | 271 |
| 273 // The first entry for each config is without msaa and the second is with. | 272 // The first entry for each config is without msaa and the second is with. |
| 274 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 273 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
| 275 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 274 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
| 276 | 275 |
| 277 private: | 276 private: |
| 278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | |
| 279 | |
| 280 bool fSupressPrints : 1; | 277 bool fSupressPrints : 1; |
| 281 bool fDrawPathMasksToCompressedTextureSupport : 1; | 278 bool fDrawPathMasksToCompressedTextureSupport : 1; |
| 282 | 279 |
| 283 typedef SkRefCnt INHERITED; | 280 typedef SkRefCnt INHERITED; |
| 284 }; | 281 }; |
| 285 | 282 |
| 286 #endif | 283 #endif |
| OLD | NEW |