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