| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrCaps.h" | 8 #include "GrCaps.h" |
| 9 #include "GrContextOptions.h" | 9 #include "GrContextOptions.h" |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 fReuseScratchTextures = true; | 92 fReuseScratchTextures = true; |
| 93 fReuseScratchBuffers = true; | 93 fReuseScratchBuffers = true; |
| 94 fGpuTracingSupport = false; | 94 fGpuTracingSupport = false; |
| 95 fCompressedTexSubImageSupport = false; | 95 fCompressedTexSubImageSupport = false; |
| 96 fOversizedStencilSupport = false; | 96 fOversizedStencilSupport = false; |
| 97 fTextureBarrierSupport = false; | 97 fTextureBarrierSupport = false; |
| 98 fSampleLocationsSupport = false; | 98 fSampleLocationsSupport = false; |
| 99 fMultisampleDisableSupport = false; | 99 fMultisampleDisableSupport = false; |
| 100 fUsesMixedSamples = false; | 100 fUsesMixedSamples = false; |
| 101 fPreferClientSideDynamicBuffers = false; | 101 fPreferClientSideDynamicBuffers = false; |
| 102 fSupportsInstancedDraws = false; | |
| 103 fFullClearIsFree = false; | 102 fFullClearIsFree = false; |
| 104 fMustClearUploadedBufferData = false; | 103 fMustClearUploadedBufferData = false; |
| 105 fSampleShadingSupport = false; | 104 fSampleShadingSupport = false; |
| 106 | 105 |
| 107 fUseDrawInsteadOfClear = false; | 106 fUseDrawInsteadOfClear = false; |
| 108 | 107 |
| 109 fInstancedSupport = InstancedSupport::kNone; | 108 fInstancedSupport = InstancedSupport::kNone; |
| 110 | 109 |
| 111 fBlendEquationSupport = kBasic_BlendEquationSupport; | 110 fBlendEquationSupport = kBasic_BlendEquationSupport; |
| 112 fAdvBlendEqBlacklist = 0; | 111 fAdvBlendEqBlacklist = 0; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); | 173 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); |
| 175 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); | 174 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); |
| 176 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); | 175 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); |
| 177 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); | 176 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); |
| 178 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); | 177 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); |
| 179 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); | 178 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); |
| 180 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); | 179 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); |
| 181 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab
leSupport]); | 180 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab
leSupport]); |
| 182 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); | 181 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); |
| 183 r.appendf("Prefer client-side dynamic buffers : %s\n", gNY[fPreferClientSide
DynamicBuffers]); | 182 r.appendf("Prefer client-side dynamic buffers : %s\n", gNY[fPreferClientSide
DynamicBuffers]); |
| 184 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance
dDraws]); | |
| 185 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); | 183 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); |
| 186 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); | 184 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); |
| 187 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); | 185 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); |
| 188 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", | 186 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", |
| 189 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); | 187 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); |
| 190 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); | 188 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); |
| 191 | 189 |
| 192 if (this->advancedBlendEquationSupport()) { | 190 if (this->advancedBlendEquationSupport()) { |
| 193 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); | 191 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); |
| 194 } | 192 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 279 |
| 282 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 280 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 283 GrPixelConfig config = static_cast<GrPixelConfig>(i); | 281 GrPixelConfig config = static_cast<GrPixelConfig>(i); |
| 284 r.appendf("%s is uploadable to a texture: %s\n", | 282 r.appendf("%s is uploadable to a texture: %s\n", |
| 285 kConfigNames[i], | 283 kConfigNames[i], |
| 286 gNY[this->isConfigTexturable(config)]); | 284 gNY[this->isConfigTexturable(config)]); |
| 287 } | 285 } |
| 288 | 286 |
| 289 return r; | 287 return r; |
| 290 } | 288 } |
| OLD | NEW |