| 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 GET_PROC(PushDebugGroup); | 508 GET_PROC(PushDebugGroup); |
| 509 GET_PROC(PopDebugGroup); | 509 GET_PROC(PopDebugGroup); |
| 510 GET_PROC(ObjectLabel); | 510 GET_PROC(ObjectLabel); |
| 511 } | 511 } |
| 512 | 512 |
| 513 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base"))
{ | 513 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base"))
{ |
| 514 GET_EGL_PROC_SUFFIX(CreateImage, KHR); | 514 GET_EGL_PROC_SUFFIX(CreateImage, KHR); |
| 515 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); | 515 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); |
| 516 } | 516 } |
| 517 | 517 |
| 518 if (glVer >= GR_GL_VER(4,0) || extensions.has("GL_ARB_sample_shading")) { |
| 519 GET_PROC(MinSampleShading); |
| 520 } |
| 521 |
| 518 interface->fStandard = kGL_GrGLStandard; | 522 interface->fStandard = kGL_GrGLStandard; |
| 519 interface->fExtensions.swap(&extensions); | 523 interface->fExtensions.swap(&extensions); |
| 520 | 524 |
| 521 return interface; | 525 return interface; |
| 522 } | 526 } |
| 523 | 527 |
| 524 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { | 528 const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get) { |
| 525 GET_PROC_LOCAL(GetString); | 529 GET_PROC_LOCAL(GetString); |
| 526 if (nullptr == GetString) { | 530 if (nullptr == GetString) { |
| 527 return nullptr; | 531 return nullptr; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 | 890 |
| 887 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { | 891 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { |
| 888 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); | 892 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); |
| 889 } | 893 } |
| 890 | 894 |
| 891 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base"))
{ | 895 if (extensions.has("EGL_KHR_image") || extensions.has("EGL_KHR_image_base"))
{ |
| 892 GET_EGL_PROC_SUFFIX(CreateImage, KHR); | 896 GET_EGL_PROC_SUFFIX(CreateImage, KHR); |
| 893 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); | 897 GET_EGL_PROC_SUFFIX(DestroyImage, KHR); |
| 894 } | 898 } |
| 895 | 899 |
| 900 if (extensions.has("GL_OES_sample_shading")) { |
| 901 GET_PROC_SUFFIX(MinSampleShading, OES); |
| 902 } |
| 903 |
| 896 interface->fStandard = kGLES_GrGLStandard; | 904 interface->fStandard = kGLES_GrGLStandard; |
| 897 interface->fExtensions.swap(&extensions); | 905 interface->fExtensions.swap(&extensions); |
| 898 | 906 |
| 899 return interface; | 907 return interface; |
| 900 } | 908 } |
| OLD | NEW |