| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 } | 248 } |
| 249 | 249 |
| 250 | 250 |
| 251 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; | 251 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; |
| 252 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const =
0; | 252 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const =
0; |
| 253 | 253 |
| 254 bool suppressPrints() const { return fSuppressPrints; } | 254 bool suppressPrints() const { return fSuppressPrints; } |
| 255 | 255 |
| 256 bool immediateFlush() const { return fImmediateFlush; } | 256 bool immediateFlush() const { return fImmediateFlush; } |
| 257 | 257 |
| 258 bool drawPathMasksToCompressedTexturesSupport() const { | |
| 259 return fDrawPathMasksToCompressedTextureSupport; | |
| 260 } | |
| 261 | |
| 262 size_t bufferMapThreshold() const { | 258 size_t bufferMapThreshold() const { |
| 263 SkASSERT(fBufferMapThreshold >= 0); | 259 SkASSERT(fBufferMapThreshold >= 0); |
| 264 return fBufferMapThreshold; | 260 return fBufferMapThreshold; |
| 265 } | 261 } |
| 266 | 262 |
| 267 bool supportsInstancedDraws() const { | 263 bool supportsInstancedDraws() const { |
| 268 return fSupportsInstancedDraws; | 264 return fSupportsInstancedDraws; |
| 269 } | 265 } |
| 270 | 266 |
| 271 bool fullClearIsFree() const { return fFullClearIsFree; } | 267 bool fullClearIsFree() const { return fFullClearIsFree; } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 int fMaxTileSize; | 322 int fMaxTileSize; |
| 327 int fMaxColorSampleCount; | 323 int fMaxColorSampleCount; |
| 328 int fMaxStencilSampleCount; | 324 int fMaxStencilSampleCount; |
| 329 int fMaxRasterSamples; | 325 int fMaxRasterSamples; |
| 330 | 326 |
| 331 private: | 327 private: |
| 332 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 328 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 333 | 329 |
| 334 bool fSuppressPrints : 1; | 330 bool fSuppressPrints : 1; |
| 335 bool fImmediateFlush: 1; | 331 bool fImmediateFlush: 1; |
| 336 bool fDrawPathMasksToCompressedTextureSupport : 1; | |
| 337 | 332 |
| 338 typedef SkRefCnt INHERITED; | 333 typedef SkRefCnt INHERITED; |
| 339 }; | 334 }; |
| 340 | 335 |
| 341 #endif | 336 #endif |
| OLD | NEW |