| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 */ | 151 */ |
| 152 bool srgbWriteControl() const { return fSRGBWriteControl; } | 152 bool srgbWriteControl() const { return fSRGBWriteControl; } |
| 153 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 153 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
| 154 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 154 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
| 155 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 155 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
| 156 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 156 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
| 157 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 157 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
| 158 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } | 158 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } |
| 159 bool textureBarrierSupport() const { return fTextureBarrierSupport; } | 159 bool textureBarrierSupport() const { return fTextureBarrierSupport; } |
| 160 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } | 160 bool sampleLocationsSupport() const { return fSampleLocationsSupport; } |
| 161 bool multisampleDisableSupport() const { return fMultisampleDisableSupport;
} |
| 161 bool usesMixedSamples() const { return fUsesMixedSamples; } | 162 bool usesMixedSamples() const { return fUsesMixedSamples; } |
| 162 | 163 |
| 163 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } | 164 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } |
| 164 bool useDrawInsteadOfPartialRenderTargetWrite() const { | 165 bool useDrawInsteadOfPartialRenderTargetWrite() const { |
| 165 return fUseDrawInsteadOfPartialRenderTargetWrite; | 166 return fUseDrawInsteadOfPartialRenderTargetWrite; |
| 166 } | 167 } |
| 167 | 168 |
| 168 bool useDrawInsteadOfAllRenderTargetWrites() const { | 169 bool useDrawInsteadOfAllRenderTargetWrites() const { |
| 169 return fUseDrawInsteadOfAllRenderTargetWrites; | 170 return fUseDrawInsteadOfAllRenderTargetWrites; |
| 170 } | 171 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 bool fTwoSidedStencilSupport : 1; | 288 bool fTwoSidedStencilSupport : 1; |
| 288 bool fStencilWrapOpsSupport : 1; | 289 bool fStencilWrapOpsSupport : 1; |
| 289 bool fDiscardRenderTargetSupport : 1; | 290 bool fDiscardRenderTargetSupport : 1; |
| 290 bool fReuseScratchTextures : 1; | 291 bool fReuseScratchTextures : 1; |
| 291 bool fReuseScratchBuffers : 1; | 292 bool fReuseScratchBuffers : 1; |
| 292 bool fGpuTracingSupport : 1; | 293 bool fGpuTracingSupport : 1; |
| 293 bool fCompressedTexSubImageSupport : 1; | 294 bool fCompressedTexSubImageSupport : 1; |
| 294 bool fOversizedStencilSupport : 1; | 295 bool fOversizedStencilSupport : 1; |
| 295 bool fTextureBarrierSupport : 1; | 296 bool fTextureBarrierSupport : 1; |
| 296 bool fSampleLocationsSupport : 1; | 297 bool fSampleLocationsSupport : 1; |
| 298 bool fMultisampleDisableSupport : 1; |
| 297 bool fUsesMixedSamples : 1; | 299 bool fUsesMixedSamples : 1; |
| 298 bool fSupportsInstancedDraws : 1; | 300 bool fSupportsInstancedDraws : 1; |
| 299 bool fFullClearIsFree : 1; | 301 bool fFullClearIsFree : 1; |
| 300 bool fMustClearUploadedBufferData : 1; | 302 bool fMustClearUploadedBufferData : 1; |
| 301 | 303 |
| 302 // Driver workaround | 304 // Driver workaround |
| 303 bool fUseDrawInsteadOfClear : 1; | 305 bool fUseDrawInsteadOfClear : 1; |
| 304 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; | 306 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; |
| 305 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; | 307 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; |
| 306 | 308 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 327 private: | 329 private: |
| 328 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; | 330 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |
| 329 | 331 |
| 330 bool fSuppressPrints : 1; | 332 bool fSuppressPrints : 1; |
| 331 bool fImmediateFlush: 1; | 333 bool fImmediateFlush: 1; |
| 332 | 334 |
| 333 typedef SkRefCnt INHERITED; | 335 typedef SkRefCnt INHERITED; |
| 334 }; | 336 }; |
| 335 | 337 |
| 336 #endif | 338 #endif |
| OLD | NEW |