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 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 fMultisampleDisableSupport = false; | 43 fMultisampleDisableSupport = false; |
44 fUseNonVBOVertexAndIndexDynamicData = false; | 44 fUseNonVBOVertexAndIndexDynamicData = false; |
45 fIsCoreProfile = false; | 45 fIsCoreProfile = false; |
46 fFullClearIsFree = false; | 46 fFullClearIsFree = false; |
47 | 47 |
48 fReadPixelsSupportedCache.reset(); | 48 fReadPixelsSupportedCache.reset(); |
49 | 49 |
50 this->init(ctxInfo, glInterface); | 50 this->init(ctxInfo, glInterface); |
51 | 51 |
52 fShaderCaps.reset(SkNEW_ARGS(GrGLSLCaps, (ctxInfo, glInterface, *this))); | 52 fShaderCaps.reset(SkNEW_ARGS(GrGLSLCaps, (ctxInfo, glInterface, *this))); |
| 53 |
| 54 this->applyOptionsOverrides(contextOptions); |
53 } | 55 } |
54 | 56 |
55 void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { | 57 void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { |
56 GrGLStandard standard = ctxInfo.standard(); | 58 GrGLStandard standard = ctxInfo.standard(); |
57 GrGLVersion version = ctxInfo.version(); | 59 GrGLVersion version = ctxInfo.version(); |
58 | 60 |
59 /************************************************************************** | 61 /************************************************************************** |
60 * Caps specific to GrGLCaps | 62 * Caps specific to GrGLCaps |
61 **************************************************************************/ | 63 **************************************************************************/ |
62 | 64 |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 if (fGeometryShaderSupport) { | 1106 if (fGeometryShaderSupport) { |
1105 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1107 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
1106 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1108 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
1107 } | 1109 } |
1108 } | 1110 } |
1109 } | 1111 } |
1110 | 1112 |
1111 | 1113 |
1112 | 1114 |
1113 | 1115 |
OLD | NEW |