| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 fMultisampleDisableSupport = false; | 47 fMultisampleDisableSupport = false; |
| 48 fUseNonVBOVertexAndIndexDynamicData = false; | 48 fUseNonVBOVertexAndIndexDynamicData = false; |
| 49 fIsCoreProfile = false; | 49 fIsCoreProfile = false; |
| 50 fBindFragDataLocationSupport = false; | 50 fBindFragDataLocationSupport = false; |
| 51 fSRGBWriteControl = false; | 51 fSRGBWriteControl = false; |
| 52 fRGBA8888PixelsOpsAreSlow = false; | 52 fRGBA8888PixelsOpsAreSlow = false; |
| 53 fPartialFBOReadIsSlow = false; | 53 fPartialFBOReadIsSlow = false; |
| 54 | 54 |
| 55 fReadPixelsSupportedCache.reset(); | 55 fReadPixelsSupportedCache.reset(); |
| 56 | 56 |
| 57 fShaderCaps.reset(SkNEW_ARGS(GrGLSLCaps, (contextOptions))); | 57 fShaderCaps.reset(new GrGLSLCaps(contextOptions)); |
| 58 | 58 |
| 59 this->init(contextOptions, ctxInfo, glInterface); | 59 this->init(contextOptions, ctxInfo, glInterface); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void GrGLCaps::init(const GrContextOptions& contextOptions, | 62 void GrGLCaps::init(const GrContextOptions& contextOptions, |
| 63 const GrGLContextInfo& ctxInfo, | 63 const GrGLContextInfo& ctxInfo, |
| 64 const GrGLInterface* gli) { | 64 const GrGLInterface* gli) { |
| 65 GrGLStandard standard = ctxInfo.standard(); | 65 GrGLStandard standard = ctxInfo.standard(); |
| 66 GrGLVersion version = ctxInfo.version(); | 66 GrGLVersion version = ctxInfo.version(); |
| 67 | 67 |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1237 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1238 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = | 1238 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = |
| 1239 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; | 1239 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; |
| 1240 } | 1240 } |
| 1241 } | 1241 } |
| 1242 } | 1242 } |
| 1243 | 1243 |
| 1244 | 1244 |
| 1245 | 1245 |
| 1246 | 1246 |
| OLD | NEW |