| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // We require the sample count to be less than maxColorSampleCount and maxSt
encilSampleCount. | 257 // We require the sample count to be less than maxColorSampleCount and maxSt
encilSampleCount. |
| 258 // If we are using mixed samples, we only care about stencil. | 258 // If we are using mixed samples, we only care about stencil. |
| 259 int maxSampleCount() const { | 259 int maxSampleCount() const { |
| 260 if (this->usesMixedSamples()) { | 260 if (this->usesMixedSamples()) { |
| 261 return this->maxStencilSampleCount(); | 261 return this->maxStencilSampleCount(); |
| 262 } else { | 262 } else { |
| 263 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou
nt()); | 263 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou
nt()); |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 | 266 |
| 267 int maxWindowRectangles() const { return fMaxWindowRectangles; } |
| 267 | 268 |
| 268 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; | 269 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; |
| 269 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const =
0; | 270 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const =
0; |
| 270 | 271 |
| 271 bool suppressPrints() const { return fSuppressPrints; } | 272 bool suppressPrints() const { return fSuppressPrints; } |
| 272 | 273 |
| 273 bool immediateFlush() const { return fImmediateFlush; } | 274 bool immediateFlush() const { return fImmediateFlush; } |
| 274 | 275 |
| 275 size_t bufferMapThreshold() const { | 276 size_t bufferMapThreshold() const { |
| 276 SkASSERT(fBufferMapThreshold >= 0); | 277 SkASSERT(fBufferMapThreshold >= 0); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 uint32_t fMapBufferFlags; | 334 uint32_t fMapBufferFlags; |
| 334 int fBufferMapThreshold; | 335 int fBufferMapThreshold; |
| 335 | 336 |
| 336 int fMaxRenderTargetSize; | 337 int fMaxRenderTargetSize; |
| 337 int fMaxVertexAttributes; | 338 int fMaxVertexAttributes; |
| 338 int fMaxTextureSize; | 339 int fMaxTextureSize; |
| 339 int fMaxTileSize; | 340 int fMaxTileSize; |
| 340 int fMaxColorSampleCount; | 341 int fMaxColorSampleCount; |
| 341 int fMaxStencilSampleCount; | 342 int fMaxStencilSampleCount; |
| 342 int fMaxRasterSamples; | 343 int fMaxRasterSamples; |
| 344 int fMaxWindowRectangles; |
| 343 | 345 |
| 344 private: | 346 private: |
| 345 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 347 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 346 | 348 |
| 347 bool fSuppressPrints : 1; | 349 bool fSuppressPrints : 1; |
| 348 bool fImmediateFlush: 1; | 350 bool fImmediateFlush: 1; |
| 349 | 351 |
| 350 typedef SkRefCnt INHERITED; | 352 typedef SkRefCnt INHERITED; |
| 351 }; | 353 }; |
| 352 | 354 |
| 353 #endif | 355 #endif |
| OLD | NEW |