| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const =
0; | 240 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const =
0; |
| 241 | 241 |
| 242 bool suppressPrints() const { return fSuppressPrints; } | 242 bool suppressPrints() const { return fSuppressPrints; } |
| 243 | 243 |
| 244 bool immediateFlush() const { return fImmediateFlush; } | 244 bool immediateFlush() const { return fImmediateFlush; } |
| 245 | 245 |
| 246 bool drawPathMasksToCompressedTexturesSupport() const { | 246 bool drawPathMasksToCompressedTexturesSupport() const { |
| 247 return fDrawPathMasksToCompressedTextureSupport; | 247 return fDrawPathMasksToCompressedTextureSupport; |
| 248 } | 248 } |
| 249 | 249 |
| 250 size_t bufferMapThreshold() const { | 250 size_t geometryBufferMapThreshold() const { |
| 251 SkASSERT(fBufferMapThreshold >= 0); | 251 SkASSERT(fGeometryBufferMapThreshold >= 0); |
| 252 return fBufferMapThreshold; | 252 return fGeometryBufferMapThreshold; |
| 253 } | 253 } |
| 254 | 254 |
| 255 bool supportsInstancedDraws() const { | 255 bool supportsInstancedDraws() const { |
| 256 return fSupportsInstancedDraws; | 256 return fSupportsInstancedDraws; |
| 257 } | 257 } |
| 258 | 258 |
| 259 bool fullClearIsFree() const { return fFullClearIsFree; } | 259 bool fullClearIsFree() const { return fFullClearIsFree; } |
| 260 | 260 |
| 261 /** True in environments that will issue errors if memory uploaded to buffer
s | 261 /** True in environments that will issue errors if memory uploaded to buffer
s |
| 262 is not initialized (even if not read by draw calls). */ | 262 is not initialized (even if not read by draw calls). */ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; | 294 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; |
| 295 | 295 |
| 296 // ANGLE workaround | 296 // ANGLE workaround |
| 297 bool fPreferVRAMUseOverFlushes : 1; | 297 bool fPreferVRAMUseOverFlushes : 1; |
| 298 | 298 |
| 299 BlendEquationSupport fBlendEquationSupport; | 299 BlendEquationSupport fBlendEquationSupport; |
| 300 uint32_t fAdvBlendEqBlacklist; | 300 uint32_t fAdvBlendEqBlacklist; |
| 301 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); | 301 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); |
| 302 | 302 |
| 303 uint32_t fMapBufferFlags; | 303 uint32_t fMapBufferFlags; |
| 304 int fBufferMapThreshold; | 304 int fGeometryBufferMapThreshold; |
| 305 | 305 |
| 306 int fMaxRenderTargetSize; | 306 int fMaxRenderTargetSize; |
| 307 int fMaxVertexAttributes; | 307 int fMaxVertexAttributes; |
| 308 int fMaxTextureSize; | 308 int fMaxTextureSize; |
| 309 int fMaxTileSize; | 309 int fMaxTileSize; |
| 310 int fMaxColorSampleCount; | 310 int fMaxColorSampleCount; |
| 311 int fMaxStencilSampleCount; | 311 int fMaxStencilSampleCount; |
| 312 int fMaxRasterSamples; | 312 int fMaxRasterSamples; |
| 313 | 313 |
| 314 private: | 314 private: |
| 315 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 315 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 316 | 316 |
| 317 bool fSuppressPrints : 1; | 317 bool fSuppressPrints : 1; |
| 318 bool fImmediateFlush: 1; | 318 bool fImmediateFlush: 1; |
| 319 bool fDrawPathMasksToCompressedTextureSupport : 1; | 319 bool fDrawPathMasksToCompressedTextureSupport : 1; |
| 320 | 320 |
| 321 typedef SkRefCnt INHERITED; | 321 typedef SkRefCnt INHERITED; |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 #endif | 324 #endif |
| OLD | NEW |