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 bool srgbSupport() const { return fSRGBSupport; } | |
141 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 140 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
142 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 141 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
143 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 142 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
144 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 143 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
145 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 144 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
146 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } | 145 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |
147 bool textureBarrierSupport() const { return fTextureBarrierSupport; } | 146 bool textureBarrierSupport() const { return fTextureBarrierSupport; } |
148 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } | 147 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } |
149 bool usesMixedSamples() const { return fUsesMixedSamples; } | 148 bool usesMixedSamples() const { return fUsesMixedSamples; } |
150 | 149 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 protected: | 261 protected: |
263 /** Subclasses must call this at the end of their constructors in order to a
pply caps | 262 /** Subclasses must call this at the end of their constructors in order to a
pply caps |
264 overrides requested by the client. Note that overrides will only reduce
the caps never | 263 overrides requested by the client. Note that overrides will only reduce
the caps never |
265 expand them. */ | 264 expand them. */ |
266 void applyOptionsOverrides(const GrContextOptions& options); | 265 void applyOptionsOverrides(const GrContextOptions& options); |
267 | 266 |
268 SkAutoTUnref<GrShaderCaps> fShaderCaps; | 267 SkAutoTUnref<GrShaderCaps> fShaderCaps; |
269 | 268 |
270 bool fNPOTTextureTileSupport : 1; | 269 bool fNPOTTextureTileSupport : 1; |
271 bool fMipMapSupport : 1; | 270 bool fMipMapSupport : 1; |
272 bool fSRGBSupport : 1; | |
273 bool fTwoSidedStencilSupport : 1; | 271 bool fTwoSidedStencilSupport : 1; |
274 bool fStencilWrapOpsSupport : 1; | 272 bool fStencilWrapOpsSupport : 1; |
275 bool fDiscardRenderTargetSupport : 1; | 273 bool fDiscardRenderTargetSupport : 1; |
276 bool fReuseScratchTextures : 1; | 274 bool fReuseScratchTextures : 1; |
277 bool fReuseScratchBuffers : 1; | 275 bool fReuseScratchBuffers : 1; |
278 bool fGpuTracingSupport : 1; | 276 bool fGpuTracingSupport : 1; |
279 bool fCompressedTexSubImageSupport : 1; | 277 bool fCompressedTexSubImageSupport : 1; |
280 bool fOversizedStencilSupport : 1; | 278 bool fOversizedStencilSupport : 1; |
281 bool fTextureBarrierSupport : 1; | 279 bool fTextureBarrierSupport : 1; |
282 bool fSampleLocationsSupport : 1; | 280 bool fSampleLocationsSupport : 1; |
(...skipping 28 matching lines...) Expand all Loading... |
311 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 309 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
312 | 310 |
313 bool fSuppressPrints : 1; | 311 bool fSuppressPrints : 1; |
314 bool fImmediateFlush: 1; | 312 bool fImmediateFlush: 1; |
315 bool fDrawPathMasksToCompressedTextureSupport : 1; | 313 bool fDrawPathMasksToCompressedTextureSupport : 1; |
316 | 314 |
317 typedef SkRefCnt INHERITED; | 315 typedef SkRefCnt INHERITED; |
318 }; | 316 }; |
319 | 317 |
320 #endif | 318 #endif |
OLD | NEW |