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 GrGLContextInfo& ctxInfo, const GrGLInterface* glInterf
ace) { | 15 GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions, |
| 16 const GrGLContextInfo& ctxInfo, |
| 17 const GrGLInterface* glInterface) : INHERITED(contextOptions)
{ |
16 fVerifiedColorConfigs.reset(); | 18 fVerifiedColorConfigs.reset(); |
17 fStencilFormats.reset(); | 19 fStencilFormats.reset(); |
18 fStencilVerifiedColorConfigs.reset(); | 20 fStencilVerifiedColorConfigs.reset(); |
19 fMSFBOType = kNone_MSFBOType; | 21 fMSFBOType = kNone_MSFBOType; |
20 fInvalidateFBType = kNone_InvalidateFBType; | 22 fInvalidateFBType = kNone_InvalidateFBType; |
21 fLATCAlias = kLATC_LATCAlias; | 23 fLATCAlias = kLATC_LATCAlias; |
22 fMapBufferType = kNone_MapBufferType; | 24 fMapBufferType = kNone_MapBufferType; |
23 fMaxFragmentUniformVectors = 0; | 25 fMaxFragmentUniformVectors = 0; |
24 fMaxVertexAttributes = 0; | 26 fMaxVertexAttributes = 0; |
25 fMaxFragmentTextureUnits = 0; | 27 fMaxFragmentTextureUnits = 0; |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 if (fGeometryShaderSupport) { | 1104 if (fGeometryShaderSupport) { |
1103 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1105 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
1104 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1106 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
1105 } | 1107 } |
1106 } | 1108 } |
1107 } | 1109 } |
1108 | 1110 |
1109 | 1111 |
1110 | 1112 |
1111 | 1113 |
OLD | NEW |