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

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

Issue 212753002: Use fixed function pipeline only when drawing paths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « src/gpu/gl/GrGLCreateNullInterface.cpp ('k') | src/gpu/gl/GrGLNoOpInterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 "gl/GrGLInterface.h" 9 #include "gl/GrGLInterface.h"
10 #include "gl/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 } 287 }
288 if (glVer >= GR_GL_VER(3,3) || fExtensions.has("GL_ARB_timer_query")) { 288 if (glVer >= GR_GL_VER(3,3) || fExtensions.has("GL_ARB_timer_query")) {
289 if (NULL == fFunctions.fQueryCounter) { 289 if (NULL == fFunctions.fQueryCounter) {
290 RETURN_FALSE_INTERFACE 290 RETURN_FALSE_INTERFACE
291 } 291 }
292 } 292 }
293 if (!isCoreProfile) { 293 if (!isCoreProfile) {
294 if (NULL == fFunctions.fLoadIdentity || 294 if (NULL == fFunctions.fLoadIdentity ||
295 NULL == fFunctions.fLoadMatrixf || 295 NULL == fFunctions.fLoadMatrixf ||
296 NULL == fFunctions.fMatrixMode || 296 NULL == fFunctions.fMatrixMode) {
297 NULL == fFunctions.fTexGenfv ||
298 NULL == fFunctions.fTexGeni) {
299 RETURN_FALSE_INTERFACE 297 RETURN_FALSE_INTERFACE
300 } 298 }
301 } 299 }
302 if (fExtensions.has("GL_NV_path_rendering")) { 300 if (fExtensions.has("GL_NV_path_rendering")) {
303 if (NULL == fFunctions.fPathCommands || 301 if (NULL == fFunctions.fPathCommands ||
304 NULL == fFunctions.fPathCoords || 302 NULL == fFunctions.fPathCoords ||
305 NULL == fFunctions.fPathSubCommands || 303 NULL == fFunctions.fPathSubCommands ||
306 NULL == fFunctions.fPathSubCoords || 304 NULL == fFunctions.fPathSubCoords ||
307 NULL == fFunctions.fPathString || 305 NULL == fFunctions.fPathString ||
308 NULL == fFunctions.fPathGlyphs || 306 NULL == fFunctions.fPathGlyphs ||
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 NULL == fFunctions.fMapTexSubImage2D || 508 NULL == fFunctions.fMapTexSubImage2D ||
511 NULL == fFunctions.fUnmapBufferSubData || 509 NULL == fFunctions.fUnmapBufferSubData ||
512 NULL == fFunctions.fUnmapTexSubImage2D) { 510 NULL == fFunctions.fUnmapTexSubImage2D) {
513 RETURN_FALSE_INTERFACE; 511 RETURN_FALSE_INTERFACE;
514 } 512 }
515 } 513 }
516 #endif 514 #endif
517 515
518 return true; 516 return true;
519 } 517 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCreateNullInterface.cpp ('k') | src/gpu/gl/GrGLNoOpInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698