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