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