| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const { | 199 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const { |
| 200 SkASSERT(kGrPixelConfigCnt > config); | 200 SkASSERT(kGrPixelConfigCnt > config); |
| 201 return fConfigRenderSupport[config][withMSAA]; | 201 return fConfigRenderSupport[config][withMSAA]; |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool isConfigTexturable(GrPixelConfig config) const { | 204 bool isConfigTexturable(GrPixelConfig config) const { |
| 205 SkASSERT(kGrPixelConfigCnt > config); | 205 SkASSERT(kGrPixelConfigCnt > config); |
| 206 return fConfigTextureSupport[config]; | 206 return fConfigTextureSupport[config]; |
| 207 } | 207 } |
| 208 | 208 |
| 209 bool suppressPrints() const { return fSupressPrints; } | 209 bool suppressPrints() const { return fSuppressPrints; } |
| 210 |
| 211 bool immediateFlush() const { return fImmediateFlush; } |
| 210 | 212 |
| 211 bool drawPathMasksToCompressedTexturesSupport() const { | 213 bool drawPathMasksToCompressedTexturesSupport() const { |
| 212 return fDrawPathMasksToCompressedTextureSupport; | 214 return fDrawPathMasksToCompressedTextureSupport; |
| 213 } | 215 } |
| 214 | 216 |
| 215 size_t geometryBufferMapThreshold() const { | 217 size_t geometryBufferMapThreshold() const { |
| 216 SkASSERT(fGeometryBufferMapThreshold >= 0); | 218 SkASSERT(fGeometryBufferMapThreshold >= 0); |
| 217 return fGeometryBufferMapThreshold; | 219 return fGeometryBufferMapThreshold; |
| 218 } | 220 } |
| 219 | 221 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 int fMaxTileSize; | 272 int fMaxTileSize; |
| 271 int fMaxSampleCount; | 273 int fMaxSampleCount; |
| 272 | 274 |
| 273 // The first entry for each config is without msaa and the second is with. | 275 // The first entry for each config is without msaa and the second is with. |
| 274 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 276 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
| 275 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 277 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
| 276 | 278 |
| 277 private: | 279 private: |
| 278 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 280 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 279 | 281 |
| 280 bool fSupressPrints : 1; | 282 bool fSuppressPrints : 1; |
| 283 bool fImmediateFlush: 1; |
| 281 bool fDrawPathMasksToCompressedTextureSupport : 1; | 284 bool fDrawPathMasksToCompressedTextureSupport : 1; |
| 282 | 285 |
| 283 typedef SkRefCnt INHERITED; | 286 typedef SkRefCnt INHERITED; |
| 284 }; | 287 }; |
| 285 | 288 |
| 286 #endif | 289 #endif |
| OLD | NEW |