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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 if (kGL_GrGLStandard == standard) { | 297 if (kGL_GrGLStandard == standard) { |
298 if (version >= GR_GL_VER(3, 0)) { | 298 if (version >= GR_GL_VER(3, 0)) { |
299 fBindFragDataLocationSupport = true; | 299 fBindFragDataLocationSupport = true; |
300 } | 300 } |
301 } else { | 301 } else { |
302 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_fun
c_extended")) { | 302 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_fun
c_extended")) { |
303 fBindFragDataLocationSupport = true; | 303 fBindFragDataLocationSupport = true; |
304 } | 304 } |
305 } | 305 } |
306 | 306 |
| 307 fBindUniformLocation = ctxInfo.hasExtension("GL_CHROMIUM_bind_uniform_locati
on"); |
| 308 |
307 #ifdef SK_BUILD_FOR_WIN | 309 #ifdef SK_BUILD_FOR_WIN |
308 // We're assuming that on Windows Chromium we're using ANGLE. | 310 // We're assuming that on Windows Chromium we're using ANGLE. |
309 bool isANGLE = kANGLE_GrGLDriver == ctxInfo.driver() || | 311 bool isANGLE = kANGLE_GrGLDriver == ctxInfo.driver() || |
310 kChromium_GrGLDriver == ctxInfo.driver(); | 312 kChromium_GrGLDriver == ctxInfo.driver(); |
311 // Angle has slow read/write pixel paths for 32bit RGBA (but fast for BGRA).
| 313 // Angle has slow read/write pixel paths for 32bit RGBA (but fast for BGRA).
|
312 fRGBA8888PixelsOpsAreSlow = isANGLE; | 314 fRGBA8888PixelsOpsAreSlow = isANGLE; |
313 // On DX9 ANGLE reading a partial FBO is slow. TODO: Check whether this is s
till true and | 315 // On DX9 ANGLE reading a partial FBO is slow. TODO: Check whether this is s
till true and |
314 // check DX11 ANGLE. | 316 // check DX11 ANGLE. |
315 fPartialFBOReadIsSlow = isANGLE; | 317 fPartialFBOReadIsSlow = isANGLE; |
316 #endif | 318 #endif |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1194 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
1193 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = | 1195 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = |
1194 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; | 1196 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; |
1195 } | 1197 } |
1196 } | 1198 } |
1197 } | 1199 } |
1198 | 1200 |
1199 | 1201 |
1200 | 1202 |
1201 | 1203 |
OLD | NEW |