| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; | 911 fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction; |
| 912 fFBFetchColorName = NULL; | 912 fFBFetchColorName = NULL; |
| 913 fFBFetchExtensionString = NULL; | 913 fFBFetchExtensionString = NULL; |
| 914 this->init(ctxInfo, gli, glCaps); | 914 this->init(ctxInfo, gli, glCaps); |
| 915 this->applyOptionsOverrides(options); | 915 this->applyOptionsOverrides(options); |
| 916 } | 916 } |
| 917 | 917 |
| 918 void GrGLSLCaps::init(const GrGLContextInfo& ctxInfo, | 918 void GrGLSLCaps::init(const GrGLContextInfo& ctxInfo, |
| 919 const GrGLInterface* gli, | 919 const GrGLInterface* gli, |
| 920 const GrGLCaps& glCaps) { | 920 const GrGLCaps& glCaps) { |
| 921 fGLSLGeneration = ctxInfo.glslGeneration(); |
| 921 GrGLStandard standard = ctxInfo.standard(); | 922 GrGLStandard standard = ctxInfo.standard(); |
| 922 GrGLVersion version = ctxInfo.version(); | 923 GrGLVersion version = ctxInfo.version(); |
| 923 | 924 |
| 924 /************************************************************************** | 925 /************************************************************************** |
| 925 * Caps specific to GrGLSLCaps | 926 * Caps specific to GrGLSLCaps |
| 926 **************************************************************************/ | 927 **************************************************************************/ |
| 927 | 928 |
| 928 if (kGLES_GrGLStandard == standard) { | 929 if (kGLES_GrGLStandard == standard) { |
| 929 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { | 930 if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { |
| 930 fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0)); | 931 fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0)); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 if (fGeometryShaderSupport) { | 1115 if (fGeometryShaderSupport) { |
| 1115 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1116 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1116 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; | 1117 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert
ex_GrShaderType][p]; |
| 1117 } | 1118 } |
| 1118 } | 1119 } |
| 1119 } | 1120 } |
| 1120 | 1121 |
| 1121 | 1122 |
| 1122 | 1123 |
| 1123 | 1124 |
| OLD | NEW |