commit | 064729e439d04b5064cc45eec1b430f4c17b1733 | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Tue Jun 18 17:22:59 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jun 18 23:49:11 2019 +0000 |
tree | c90751f03091bd89e465a881ec8c7c0fe42aa073 | |
parent | d42692d329264ead9b918971661833bf49c39b96 [diff] [blame] |
Implement program binary caching in ES2 (with GL_OES_get_program_binary) Change-Id: I6f9ee51f7c063ca03bf48fccd413dae244edd191 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/221778 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/gl/GrGLAssembleGLESInterfaceAutogen.cpp b/src/gpu/gl/GrGLAssembleGLESInterfaceAutogen.cpp index 41411dc..0cd9bf2 100644 --- a/src/gpu/gl/GrGLAssembleGLESInterfaceAutogen.cpp +++ b/src/gpu/gl/GrGLAssembleGLESInterfaceAutogen.cpp
@@ -437,6 +437,12 @@ if (glVer >= GR_GL_VER(3,0)) { GET_PROC(GetProgramBinary); GET_PROC(ProgramBinary); + } else if (extensions.has("GL_OES_get_program_binary")) { + GET_PROC_SUFFIX(GetProgramBinary, OES); + GET_PROC_SUFFIX(ProgramBinary, OES); + } + + if (glVer >= GR_GL_VER(3,0)) { GET_PROC(ProgramParameteri); }