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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 GrCaps(const GrContextOptions&); | 130 GrCaps(const GrContextOptions&); |
131 | 131 |
132 virtual SkString dump() const; | 132 virtual SkString dump() const; |
133 | 133 |
134 GrShaderCaps* shaderCaps() const { return fShaderCaps; } | 134 GrShaderCaps* shaderCaps() const { return fShaderCaps; } |
135 | 135 |
136 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 136 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
137 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. | 137 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. |
138 only for POT textures) */ | 138 only for POT textures) */ |
139 bool mipMapSupport() const { return fMipMapSupport; } | 139 bool mipMapSupport() const { return fMipMapSupport; } |
| 140 |
| 141 /** |
| 142 * Skia convention is that a device only has sRGB support if it supports sRG
B formats for both |
| 143 * textures and framebuffers. In addition: |
| 144 * Decoding to linear of an sRGB texture can be disabled. |
| 145 * Encoding and gamma-correct blending to an sRGB framebuffer can be disab
led. |
| 146 */ |
140 bool srgbSupport() const { return fSRGBSupport; } | 147 bool srgbSupport() const { return fSRGBSupport; } |
141 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 148 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
142 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 149 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
143 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 150 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
144 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 151 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
145 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 152 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
146 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } | 153 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |
147 bool textureBarrierSupport() const { return fTextureBarrierSupport; } | 154 bool textureBarrierSupport() const { return fTextureBarrierSupport; } |
148 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } | 155 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } |
149 bool usesMixedSamples() const { return fUsesMixedSamples; } | 156 bool usesMixedSamples() const { return fUsesMixedSamples; } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 322 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
316 | 323 |
317 bool fSuppressPrints : 1; | 324 bool fSuppressPrints : 1; |
318 bool fImmediateFlush: 1; | 325 bool fImmediateFlush: 1; |
319 bool fDrawPathMasksToCompressedTextureSupport : 1; | 326 bool fDrawPathMasksToCompressedTextureSupport : 1; |
320 | 327 |
321 typedef SkRefCnt INHERITED; | 328 typedef SkRefCnt INHERITED; |
322 }; | 329 }; |
323 | 330 |
324 #endif | 331 #endif |
OLD | NEW |