| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
| 10 | 10 |
| 11 #include "GrGLContext.h" | 11 #include "GrGLContext.h" |
| 12 #include "SkTSearch.h" | 12 #include "SkTSearch.h" |
| 13 #include "SkTSort.h" | 13 #include "SkTSort.h" |
| 14 | 14 |
| 15 GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions, | 15 GrGLCaps::GrGLCaps(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterf
ace) { |
| 16 const GrGLContextInfo& ctxInfo, | |
| 17 const GrGLInterface* glInterface) : INHERITED(contextOptions)
{ | |
| 18 fVerifiedColorConfigs.reset(); | 16 fVerifiedColorConfigs.reset(); |
| 19 fStencilFormats.reset(); | 17 fStencilFormats.reset(); |
| 20 fStencilVerifiedColorConfigs.reset(); | 18 fStencilVerifiedColorConfigs.reset(); |
| 21 fMSFBOType = kNone_MSFBOType; | 19 fMSFBOType = kNone_MSFBOType; |
| 22 fInvalidateFBType = kNone_InvalidateFBType; | 20 fInvalidateFBType = kNone_InvalidateFBType; |
| 23 fLATCAlias = kLATC_LATCAlias; | 21 fLATCAlias = kLATC_LATCAlias; |
| 24 fMapBufferType = kNone_MapBufferType; | 22 fMapBufferType = kNone_MapBufferType; |
| 25 fMaxFragmentUniformVectors = 0; | 23 fMaxFragmentUniformVectors = 0; |
| 26 fMaxVertexAttributes = 0; | 24 fMaxVertexAttributes = 0; |
| 27 fMaxFragmentTextureUnits = 0; | 25 fMaxFragmentTextureUnits = 0; |
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 if (fGeometryShaderSupport) { | 1102 if (fGeometryShaderSupport) { |
| 1105 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1103 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1106 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1104 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
| 1107 } | 1105 } |
| 1108 } | 1106 } |
| 1109 } | 1107 } |
| 1110 | 1108 |
| 1111 | 1109 |
| 1112 | 1110 |
| 1113 | 1111 |
| OLD | NEW |