| 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 #include "GrWindowRectangles.h" | 10 #include "GrWindowRectangles.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 fCompressedTexSubImageSupport = false; | 96 fCompressedTexSubImageSupport = false; |
| 97 fOversizedStencilSupport = false; | 97 fOversizedStencilSupport = false; |
| 98 fTextureBarrierSupport = false; | 98 fTextureBarrierSupport = false; |
| 99 fSampleLocationsSupport = false; | 99 fSampleLocationsSupport = false; |
| 100 fMultisampleDisableSupport = false; | 100 fMultisampleDisableSupport = false; |
| 101 fUsesMixedSamples = false; | 101 fUsesMixedSamples = false; |
| 102 fPreferClientSideDynamicBuffers = false; | 102 fPreferClientSideDynamicBuffers = false; |
| 103 fFullClearIsFree = false; | 103 fFullClearIsFree = false; |
| 104 fMustClearUploadedBufferData = false; | 104 fMustClearUploadedBufferData = false; |
| 105 fSampleShadingSupport = false; | 105 fSampleShadingSupport = false; |
| 106 fFenceSyncSupport = false; |
| 106 | 107 |
| 107 fUseDrawInsteadOfClear = false; | 108 fUseDrawInsteadOfClear = false; |
| 108 | 109 |
| 109 fInstancedSupport = InstancedSupport::kNone; | 110 fInstancedSupport = InstancedSupport::kNone; |
| 110 | 111 |
| 111 fBlendEquationSupport = kBasic_BlendEquationSupport; | 112 fBlendEquationSupport = kBasic_BlendEquationSupport; |
| 112 fAdvBlendEqBlacklist = 0; | 113 fAdvBlendEqBlacklist = 0; |
| 113 | 114 |
| 114 fMapBufferFlags = kNone_MapFlags; | 115 fMapBufferFlags = kNone_MapFlags; |
| 115 | 116 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); | 183 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); |
| 183 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); | 184 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); |
| 184 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); | 185 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); |
| 185 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); | 186 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); |
| 186 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); | 187 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); |
| 187 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab
leSupport]); | 188 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab
leSupport]); |
| 188 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); | 189 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); |
| 189 r.appendf("Prefer client-side dynamic buffers : %s\n", gNY[fPreferClientSide
DynamicBuffers]); | 190 r.appendf("Prefer client-side dynamic buffers : %s\n", gNY[fPreferClientSide
DynamicBuffers]); |
| 190 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); | 191 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); |
| 191 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); | 192 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); |
| 193 r.appendf("Sample shading support : %s\n", gNY[fSampleShadingSup
port]); |
| 194 r.appendf("Fence sync support : %s\n", gNY[fFenceSyncSupport
]); |
| 195 |
| 192 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); | 196 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); |
| 193 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", | 197 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", |
| 194 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); | 198 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); |
| 195 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); | 199 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); |
| 196 | 200 |
| 197 if (this->advancedBlendEquationSupport()) { | 201 if (this->advancedBlendEquationSupport()) { |
| 198 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); | 202 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); |
| 199 } | 203 } |
| 200 | 204 |
| 201 r.appendf("Max Vertex Attributes : %d\n", fMaxVertexAttributes)
; | 205 r.appendf("Max Vertex Attributes : %d\n", fMaxVertexAttributes)
; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 291 |
| 288 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 292 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 289 GrPixelConfig config = static_cast<GrPixelConfig>(i); | 293 GrPixelConfig config = static_cast<GrPixelConfig>(i); |
| 290 r.appendf("%s is uploadable to a texture: %s\n", | 294 r.appendf("%s is uploadable to a texture: %s\n", |
| 291 kConfigNames[i], | 295 kConfigNames[i], |
| 292 gNY[this->isConfigTexturable(config)]); | 296 gNY[this->isConfigTexturable(config)]); |
| 293 } | 297 } |
| 294 | 298 |
| 295 return r; | 299 return r; |
| 296 } | 300 } |
| OLD | NEW |