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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
227 if (this->usesMixedSamples()) { | 227 if (this->usesMixedSamples()) { |
228 return this->maxStencilSampleCount(); | 228 return this->maxStencilSampleCount(); |
229 } else { | 229 } else { |
230 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou nt()); | 230 return SkTMin(this->maxColorSampleCount(), this->maxStencilSampleCou nt()); |
231 } | 231 } |
232 } | 232 } |
233 | 233 |
234 | 234 |
235 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; | 235 virtual bool isConfigTexturable(GrPixelConfig config) const = 0; |
236 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; | 236 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; |
237 virtual bool isConfigTexSupportEnabled(GrPixelConfig config) const = 0; | |
bsalomon
2016/02/27 14:18:54
We shouldn't need to expose this at the GrCaps lev
cblume
2016/02/28 02:44:42
Done.
| |
237 | 238 |
238 bool suppressPrints() const { return fSuppressPrints; } | 239 bool suppressPrints() const { return fSuppressPrints; } |
239 | 240 |
240 bool immediateFlush() const { return fImmediateFlush; } | 241 bool immediateFlush() const { return fImmediateFlush; } |
241 | 242 |
242 bool drawPathMasksToCompressedTexturesSupport() const { | 243 bool drawPathMasksToCompressedTexturesSupport() const { |
243 return fDrawPathMasksToCompressedTextureSupport; | 244 return fDrawPathMasksToCompressedTextureSupport; |
244 } | 245 } |
245 | 246 |
246 size_t geometryBufferMapThreshold() const { | 247 size_t geometryBufferMapThreshold() const { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
309 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 310 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
310 | 311 |
311 bool fSuppressPrints : 1; | 312 bool fSuppressPrints : 1; |
312 bool fImmediateFlush: 1; | 313 bool fImmediateFlush: 1; |
313 bool fDrawPathMasksToCompressedTextureSupport : 1; | 314 bool fDrawPathMasksToCompressedTextureSupport : 1; |
314 | 315 |
315 typedef SkRefCnt INHERITED; | 316 typedef SkRefCnt INHERITED; |
316 }; | 317 }; |
317 | 318 |
318 #endif | 319 #endif |
OLD | NEW |