Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/gpu/gl/GrGLCaps.cpp

Issue 1376293003: Fix for 2056 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698