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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 fReuseScratchBuffers = true; | 91 fReuseScratchBuffers = true; |
92 fGpuTracingSupport = false; | 92 fGpuTracingSupport = false; |
93 fCompressedTexSubImageSupport = false; | 93 fCompressedTexSubImageSupport = false; |
94 fOversizedStencilSupport = false; | 94 fOversizedStencilSupport = false; |
95 fTextureBarrierSupport = false; | 95 fTextureBarrierSupport = false; |
96 fSampleLocationsSupport = false; | 96 fSampleLocationsSupport = false; |
97 fUsesMixedSamples = false; | 97 fUsesMixedSamples = false; |
98 fSupportsInstancedDraws = false; | 98 fSupportsInstancedDraws = false; |
99 fFullClearIsFree = false; | 99 fFullClearIsFree = false; |
100 fMustClearUploadedBufferData = false; | 100 fMustClearUploadedBufferData = false; |
| 101 fSampleShadingSupport = false; |
101 | 102 |
102 fUseDrawInsteadOfClear = false; | 103 fUseDrawInsteadOfClear = false; |
103 | 104 |
104 fBlendEquationSupport = kBasic_BlendEquationSupport; | 105 fBlendEquationSupport = kBasic_BlendEquationSupport; |
105 fAdvBlendEqBlacklist = 0; | 106 fAdvBlendEqBlacklist = 0; |
106 | 107 |
107 fMapBufferFlags = kNone_MapFlags; | 108 fMapBufferFlags = kNone_MapFlags; |
108 | 109 |
109 fMaxVertexAttributes = 0; | 110 fMaxVertexAttributes = 0; |
110 fMaxRenderTargetSize = 1; | 111 fMaxRenderTargetSize = 1; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 257 |
257 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 258 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
258 GrPixelConfig config = static_cast<GrPixelConfig>(i); | 259 GrPixelConfig config = static_cast<GrPixelConfig>(i); |
259 r.appendf("%s is uploadable to a texture: %s\n", | 260 r.appendf("%s is uploadable to a texture: %s\n", |
260 kConfigNames[i], | 261 kConfigNames[i], |
261 gNY[this->isConfigTexturable(config)]); | 262 gNY[this->isConfigTexturable(config)]); |
262 } | 263 } |
263 | 264 |
264 return r; | 265 return r; |
265 } | 266 } |
OLD | NEW |