| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 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 | 8 |
| 9 #include "GrCaps.h" | 9 #include "GrCaps.h" |
| 10 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 fNPOTTextureTileSupport = false; | 85 fNPOTTextureTileSupport = false; |
| 86 fTwoSidedStencilSupport = false; | 86 fTwoSidedStencilSupport = false; |
| 87 fStencilWrapOpsSupport = false; | 87 fStencilWrapOpsSupport = false; |
| 88 fDiscardRenderTargetSupport = false; | 88 fDiscardRenderTargetSupport = false; |
| 89 fReuseScratchTextures = true; | 89 fReuseScratchTextures = true; |
| 90 fReuseScratchBuffers = true; | 90 fReuseScratchBuffers = true; |
| 91 fGpuTracingSupport = false; | 91 fGpuTracingSupport = false; |
| 92 fCompressedTexSubImageSupport = false; | 92 fCompressedTexSubImageSupport = false; |
| 93 fOversizedStencilSupport = false; | 93 fOversizedStencilSupport = false; |
| 94 fTextureBarrierSupport = false; | 94 fTextureBarrierSupport = false; |
| 95 fSampleLocationsSupport = false; | |
| 96 fUsesMixedSamples = false; | 95 fUsesMixedSamples = false; |
| 97 fSupportsInstancedDraws = false; | 96 fSupportsInstancedDraws = false; |
| 98 fFullClearIsFree = false; | 97 fFullClearIsFree = false; |
| 99 fMustClearUploadedBufferData = false; | 98 fMustClearUploadedBufferData = false; |
| 100 | 99 |
| 101 fUseDrawInsteadOfClear = false; | 100 fUseDrawInsteadOfClear = false; |
| 102 | 101 |
| 103 fBlendEquationSupport = kBasic_BlendEquationSupport; | 102 fBlendEquationSupport = kBasic_BlendEquationSupport; |
| 104 fAdvBlendEqBlacklist = 0; | 103 fAdvBlendEqBlacklist = 0; |
| 105 | 104 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 r.appendf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileS
upport]); | 158 r.appendf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileS
upport]); |
| 160 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS
upport]); | 159 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS
upport]); |
| 161 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu
pport]); | 160 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu
pport]); |
| 162 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar
getSupport]); | 161 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar
getSupport]); |
| 163 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); | 162 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); |
| 164 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); | 163 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); |
| 165 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); | 164 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); |
| 166 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); | 165 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); |
| 167 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); | 166 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); |
| 168 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); | 167 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); |
| 169 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); | |
| 170 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); | 168 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); |
| 171 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance
dDraws]); | 169 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance
dDraws]); |
| 172 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); | 170 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); |
| 173 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); | 171 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); |
| 174 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); | 172 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); |
| 175 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", | 173 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", |
| 176 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); | 174 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); |
| 177 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); | 175 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); |
| 178 | 176 |
| 179 if (this->advancedBlendEquationSupport()) { | 177 if (this->advancedBlendEquationSupport()) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 248 |
| 251 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 249 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 252 GrPixelConfig config = static_cast<GrPixelConfig>(i); | 250 GrPixelConfig config = static_cast<GrPixelConfig>(i); |
| 253 r.appendf("%s is uploadable to a texture: %s\n", | 251 r.appendf("%s is uploadable to a texture: %s\n", |
| 254 kConfigNames[i], | 252 kConfigNames[i], |
| 255 gNY[this->isConfigTexturable(config)]); | 253 gNY[this->isConfigTexturable(config)]); |
| 256 } | 254 } |
| 257 | 255 |
| 258 return r; | 256 return r; |
| 259 } | 257 } |
| OLD | NEW |