| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 fFloatPrecisions[s][p].fLogRangeLow, | 66 fFloatPrecisions[s][p].fLogRangeLow, |
| 67 fFloatPrecisions[s][p].fLogRangeHigh, | 67 fFloatPrecisions[s][p].fLogRangeHigh, |
| 68 fFloatPrecisions[s][p].fBits); | 68 fFloatPrecisions[s][p].fBits); |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 | 72 |
| 73 return r; | 73 return r; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void GrShaderCaps::applyOptionsOverrides(const GrContextOptions&) { | 76 void GrShaderCaps::applyOptionsOverrides(const GrContextOptions& options) { |
| 77 // Currently no overrides apply to shader caps. | 77 fDualSourceBlendingSupport = fDualSourceBlendingSupport && !options.fSuppres
sDualSourceBlending; |
| 78 } | 78 } |
| 79 | 79 |
| 80 /////////////////////////////////////////////////////////////////////////////// | 80 /////////////////////////////////////////////////////////////////////////////// |
| 81 | 81 |
| 82 GrCaps::GrCaps(const GrContextOptions& options) { | 82 GrCaps::GrCaps(const GrContextOptions& options) { |
| 83 fMipMapSupport = false; | 83 fMipMapSupport = false; |
| 84 fNPOTTextureTileSupport = false; | 84 fNPOTTextureTileSupport = false; |
| 85 fTwoSidedStencilSupport = false; | 85 fTwoSidedStencilSupport = false; |
| 86 fStencilWrapOpsSupport = false; | 86 fStencilWrapOpsSupport = false; |
| 87 fDiscardRenderTargetSupport = false; | 87 fDiscardRenderTargetSupport = false; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); | 212 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); |
| 213 | 213 |
| 214 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 214 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
| 215 r.appendf("%s is uploadable to a texture: %s\n", | 215 r.appendf("%s is uploadable to a texture: %s\n", |
| 216 kConfigNames[i], | 216 kConfigNames[i], |
| 217 gNY[fConfigTextureSupport[i]]); | 217 gNY[fConfigTextureSupport[i]]); |
| 218 } | 218 } |
| 219 | 219 |
| 220 return r; | 220 return r; |
| 221 } | 221 } |
| OLD | NEW |