| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "GrGLAssembleInterface.h" | 10 #include "GrGLAssembleInterface.h" |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 GrGLInterface* interface = SkNEW(GrGLInterface); | 490 GrGLInterface* interface = SkNEW(GrGLInterface); |
| 491 GrGLInterface::Functions* functions = &interface->fFunctions; | 491 GrGLInterface::Functions* functions = &interface->fFunctions; |
| 492 | 492 |
| 493 GET_PROC(ActiveTexture); | 493 GET_PROC(ActiveTexture); |
| 494 GET_PROC(AttachShader); | 494 GET_PROC(AttachShader); |
| 495 GET_PROC(BindAttribLocation); | 495 GET_PROC(BindAttribLocation); |
| 496 GET_PROC(BindBuffer); | 496 GET_PROC(BindBuffer); |
| 497 GET_PROC(BindTexture); | 497 GET_PROC(BindTexture); |
| 498 GET_PROC_SUFFIX(BindVertexArray, OES); | 498 GET_PROC_SUFFIX(BindVertexArray, OES); |
| 499 | 499 |
| 500 if (version >= GR_GL_VER(3,0) && extensions.has("GL_EXT_blend_func_extended"
)) { |
| 501 GET_PROC_SUFFIX(BindFragDataLocation, EXT); |
| 502 GET_PROC_SUFFIX(BindFragDataLocationIndexed, EXT); |
| 503 } |
| 504 |
| 500 if (extensions.has("GL_KHR_blend_equation_advanced")) { | 505 if (extensions.has("GL_KHR_blend_equation_advanced")) { |
| 501 GET_PROC_SUFFIX(BlendBarrier, KHR); | 506 GET_PROC_SUFFIX(BlendBarrier, KHR); |
| 502 } else if (extensions.has("GL_NV_blend_equation_advanced")) { | 507 } else if (extensions.has("GL_NV_blend_equation_advanced")) { |
| 503 GET_PROC_SUFFIX(BlendBarrier, NV); | 508 GET_PROC_SUFFIX(BlendBarrier, NV); |
| 504 } | 509 } |
| 505 | 510 |
| 506 GET_PROC(BlendColor); | 511 GET_PROC(BlendColor); |
| 507 GET_PROC(BlendEquation); | 512 GET_PROC(BlendEquation); |
| 508 GET_PROC(BlendFunc); | 513 GET_PROC(BlendFunc); |
| 509 GET_PROC(BufferData); | 514 GET_PROC(BufferData); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 GET_PROC_SUFFIX(PushDebugGroup, KHR); | 751 GET_PROC_SUFFIX(PushDebugGroup, KHR); |
| 747 GET_PROC_SUFFIX(PopDebugGroup, KHR); | 752 GET_PROC_SUFFIX(PopDebugGroup, KHR); |
| 748 GET_PROC_SUFFIX(ObjectLabel, KHR); | 753 GET_PROC_SUFFIX(ObjectLabel, KHR); |
| 749 } | 754 } |
| 750 | 755 |
| 751 interface->fStandard = kGLES_GrGLStandard; | 756 interface->fStandard = kGLES_GrGLStandard; |
| 752 interface->fExtensions.swap(&extensions); | 757 interface->fExtensions.swap(&extensions); |
| 753 | 758 |
| 754 return interface; | 759 return interface; |
| 755 } | 760 } |
| OLD | NEW |