| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 fFullClearIsFree = false; | 99 fFullClearIsFree = false; |
| 100 fMustClearUploadedBufferData = false; | 100 fMustClearUploadedBufferData = false; |
| 101 | 101 |
| 102 fUseDrawInsteadOfClear = false; | 102 fUseDrawInsteadOfClear = false; |
| 103 | 103 |
| 104 fBlendEquationSupport = kBasic_BlendEquationSupport; | 104 fBlendEquationSupport = kBasic_BlendEquationSupport; |
| 105 fAdvBlendEqBlacklist = 0; | 105 fAdvBlendEqBlacklist = 0; |
| 106 | 106 |
| 107 fMapBufferFlags = kNone_MapFlags; | 107 fMapBufferFlags = kNone_MapFlags; |
| 108 | 108 |
| 109 fMaxVertexAttributes = 0; |
| 109 fMaxRenderTargetSize = 1; | 110 fMaxRenderTargetSize = 1; |
| 110 fMaxTextureSize = 1; | 111 fMaxTextureSize = 1; |
| 111 fMaxColorSampleCount = 0; | 112 fMaxColorSampleCount = 0; |
| 112 fMaxStencilSampleCount = 0; | 113 fMaxStencilSampleCount = 0; |
| 113 fMaxRasterSamples = 0; | 114 fMaxRasterSamples = 0; |
| 114 | 115 |
| 115 fSuppressPrints = options.fSuppressPrints; | 116 fSuppressPrints = options.fSuppressPrints; |
| 116 fImmediateFlush = options.fImmediateMode; | 117 fImmediateFlush = options.fImmediateMode; |
| 117 fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedText
ure; | 118 fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedText
ure; |
| 118 fGeometryBufferMapThreshold = options.fGeometryBufferMapThreshold; | 119 fGeometryBufferMapThreshold = options.fGeometryBufferMapThreshold; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); | 176 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); |
| 176 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); | 177 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); |
| 177 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", | 178 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", |
| 178 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); | 179 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); |
| 179 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); | 180 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); |
| 180 | 181 |
| 181 if (this->advancedBlendEquationSupport()) { | 182 if (this->advancedBlendEquationSupport()) { |
| 182 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); | 183 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac
klist); |
| 183 } | 184 } |
| 184 | 185 |
| 186 r.appendf("Max Vertex Attributes : %d\n", fMaxVertexAttributes)
; |
| 185 r.appendf("Max Texture Size : %d\n", fMaxTextureSize); | 187 r.appendf("Max Texture Size : %d\n", fMaxTextureSize); |
| 186 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize)
; | 188 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize)
; |
| 187 r.appendf("Max Color Sample Count : %d\n", fMaxColorSampleCount)
; | 189 r.appendf("Max Color Sample Count : %d\n", fMaxColorSampleCount)
; |
| 188 r.appendf("Max Stencil Sample Count : %d\n", fMaxStencilSampleCoun
t); | 190 r.appendf("Max Stencil Sample Count : %d\n", fMaxStencilSampleCoun
t); |
| 189 r.appendf("Max Raster Samples : %d\n", fMaxRasterSamples); | 191 r.appendf("Max Raster Samples : %d\n", fMaxRasterSamples); |
| 190 | 192 |
| 191 static const char* kBlendEquationSupportNames[] = { | 193 static const char* kBlendEquationSupportNames[] = { |
| 192 "Basic", | 194 "Basic", |
| 193 "Advanced", | 195 "Advanced", |
| 194 "Advanced Coherent", | 196 "Advanced Coherent", |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 256 |
| 255 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 257 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 256 GrPixelConfig config = static_cast<GrPixelConfig>(i); | 258 GrPixelConfig config = static_cast<GrPixelConfig>(i); |
| 257 r.appendf("%s is uploadable to a texture: %s\n", | 259 r.appendf("%s is uploadable to a texture: %s\n", |
| 258 kConfigNames[i], | 260 kConfigNames[i], |
| 259 gNY[this->isConfigTexturable(config)]); | 261 gNY[this->isConfigTexturable(config)]); |
| 260 } | 262 } |
| 261 | 263 |
| 262 return r; | 264 return r; |
| 263 } | 265 } |
| OLD | NEW |