| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 fNPOTTextureTileSupport = false; | 84 fNPOTTextureTileSupport = false; |
| 85 fTwoSidedStencilSupport = false; | 85 fTwoSidedStencilSupport = false; |
| 86 fStencilWrapOpsSupport = false; | 86 fStencilWrapOpsSupport = false; |
| 87 fDiscardRenderTargetSupport = false; | 87 fDiscardRenderTargetSupport = false; |
| 88 fReuseScratchTextures = true; | 88 fReuseScratchTextures = true; |
| 89 fReuseScratchBuffers = true; | 89 fReuseScratchBuffers = true; |
| 90 fGpuTracingSupport = false; | 90 fGpuTracingSupport = false; |
| 91 fCompressedTexSubImageSupport = false; | 91 fCompressedTexSubImageSupport = false; |
| 92 fOversizedStencilSupport = false; | 92 fOversizedStencilSupport = false; |
| 93 fTextureBarrierSupport = false; | 93 fTextureBarrierSupport = false; |
| 94 fSupportsInstancedDraws = false; |
| 94 | 95 |
| 95 fUseDrawInsteadOfClear = false; | 96 fUseDrawInsteadOfClear = false; |
| 96 | 97 |
| 97 fBlendEquationSupport = kBasic_BlendEquationSupport; | 98 fBlendEquationSupport = kBasic_BlendEquationSupport; |
| 98 fAdvBlendEqBlacklist = 0; | 99 fAdvBlendEqBlacklist = 0; |
| 99 | 100 |
| 100 fMapBufferFlags = kNone_MapFlags; | 101 fMapBufferFlags = kNone_MapFlags; |
| 101 | 102 |
| 102 fMaxRenderTargetSize = 0; | 103 fMaxRenderTargetSize = 0; |
| 103 fMaxTextureSize = 0; | 104 fMaxTextureSize = 0; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 r.appendf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileS
upport]); | 146 r.appendf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileS
upport]); |
| 146 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS
upport]); | 147 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS
upport]); |
| 147 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu
pport]); | 148 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu
pport]); |
| 148 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar
getSupport]); | 149 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar
getSupport]); |
| 149 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); | 150 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); |
| 150 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); | 151 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); |
| 151 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); | 152 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); |
| 152 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); | 153 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); |
| 153 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); | 154 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); |
| 154 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); | 155 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); |
| 156 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance
dDraws]); |
| 155 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); | 157 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); |
| 156 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", | 158 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", |
| 157 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); | 159 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); |
| 158 if (this->advancedBlendEquationSupport()) { | 160 if (this->advancedBlendEquationSupport()) { |
| 159 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); | 161 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); |
| 160 } | 162 } |
| 161 | 163 |
| 162 r.appendf("Max Texture Size : %d\n", fMaxTextureSize); | 164 r.appendf("Max Texture Size : %d\n", fMaxTextureSize); |
| 163 r.appendf("Min Texture Size : %d\n", fMinTextureSize); | 165 r.appendf("Min Texture Size : %d\n", fMinTextureSize); |
| 164 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize)
; | 166 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize)
; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); | 228 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); |
| 227 | 229 |
| 228 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 230 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 229 r.appendf("%s is uploadable to a texture: %s\n", | 231 r.appendf("%s is uploadable to a texture: %s\n", |
| 230 kConfigNames[i], | 232 kConfigNames[i], |
| 231 gNY[fConfigTextureSupport[i]]); | 233 gNY[fConfigTextureSupport[i]]); |
| 232 } | 234 } |
| 233 | 235 |
| 234 return r; | 236 return r; |
| 235 } | 237 } |
| OLD | NEW |