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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 140 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
141 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 141 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
142 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 142 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
143 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 143 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
144 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 144 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
145 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } | 145 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |
146 bool textureBarrierSupport() const { return fTextureBarrierSupport; } | 146 bool textureBarrierSupport() const { return fTextureBarrierSupport; } |
| 147 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } |
147 bool usesMixedSamples() const { return fUsesMixedSamples; } | 148 bool usesMixedSamples() const { return fUsesMixedSamples; } |
148 | 149 |
149 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } | 150 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } |
150 bool useDrawInsteadOfPartialRenderTargetWrite() const { | 151 bool useDrawInsteadOfPartialRenderTargetWrite() const { |
151 return fUseDrawInsteadOfPartialRenderTargetWrite; | 152 return fUseDrawInsteadOfPartialRenderTargetWrite; |
152 } | 153 } |
153 | 154 |
154 bool useDrawInsteadOfAllRenderTargetWrites() const { | 155 bool useDrawInsteadOfAllRenderTargetWrites() const { |
155 return fUseDrawInsteadOfAllRenderTargetWrites; | 156 return fUseDrawInsteadOfAllRenderTargetWrites; |
156 } | 157 } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 bool fMipMapSupport : 1; | 270 bool fMipMapSupport : 1; |
270 bool fTwoSidedStencilSupport : 1; | 271 bool fTwoSidedStencilSupport : 1; |
271 bool fStencilWrapOpsSupport : 1; | 272 bool fStencilWrapOpsSupport : 1; |
272 bool fDiscardRenderTargetSupport : 1; | 273 bool fDiscardRenderTargetSupport : 1; |
273 bool fReuseScratchTextures : 1; | 274 bool fReuseScratchTextures : 1; |
274 bool fReuseScratchBuffers : 1; | 275 bool fReuseScratchBuffers : 1; |
275 bool fGpuTracingSupport : 1; | 276 bool fGpuTracingSupport : 1; |
276 bool fCompressedTexSubImageSupport : 1; | 277 bool fCompressedTexSubImageSupport : 1; |
277 bool fOversizedStencilSupport : 1; | 278 bool fOversizedStencilSupport : 1; |
278 bool fTextureBarrierSupport : 1; | 279 bool fTextureBarrierSupport : 1; |
| 280 bool fSampleLocationsSupport : 1; |
279 bool fUsesMixedSamples : 1; | 281 bool fUsesMixedSamples : 1; |
280 bool fSupportsInstancedDraws : 1; | 282 bool fSupportsInstancedDraws : 1; |
281 bool fFullClearIsFree : 1; | 283 bool fFullClearIsFree : 1; |
282 bool fMustClearUploadedBufferData : 1; | 284 bool fMustClearUploadedBufferData : 1; |
283 | 285 |
284 // Driver workaround | 286 // Driver workaround |
285 bool fUseDrawInsteadOfClear : 1; | 287 bool fUseDrawInsteadOfClear : 1; |
286 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; | 288 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; |
287 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; | 289 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; |
288 | 290 |
(...skipping 18 matching lines...) Expand all Loading... |
307 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 309 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
308 | 310 |
309 bool fSuppressPrints : 1; | 311 bool fSuppressPrints : 1; |
310 bool fImmediateFlush: 1; | 312 bool fImmediateFlush: 1; |
311 bool fDrawPathMasksToCompressedTextureSupport : 1; | 313 bool fDrawPathMasksToCompressedTextureSupport : 1; |
312 | 314 |
313 typedef SkRefCnt INHERITED; | 315 typedef SkRefCnt INHERITED; |
314 }; | 316 }; |
315 | 317 |
316 #endif | 318 #endif |
OLD | NEW |