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