OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |