aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-11-22 14:51:00 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-22 14:51:00 -0800
commit7ea33f5e1ae9eb1fb1e7377d6edf6acdcf71d103 (patch)
tree92aa7841b61ab93ec8a95d834e309ae0d2cf04e8 /src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp
parentde3aac8cea8a7113f31591e6e02c51fe0ac45280 (diff)
Initial version of external_oes texture support and unit test
Diffstat (limited to 'src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp')
-rw-r--r--src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp b/src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp
index 703e39d097..fef4f0276f 100644
--- a/src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp
+++ b/src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp
@@ -14,7 +14,15 @@
static GrGLFuncPtr egl_get_gl_proc(void* ctx, const char name[]) {
SkASSERT(nullptr == ctx);
- return eglGetProcAddress(name);
+ GrGLFuncPtr ptr = eglGetProcAddress(name);
+ if (!ptr) {
+ if (0 == strcmp("eglQueryString", name)) {
+ return (GrGLFuncPtr)eglQueryString;
+ } else if (0 == strcmp("eglGetCurrentDisplay", name)) {
+ return (GrGLFuncPtr)eglGetCurrentDisplay;
+ }
+ }
+ return ptr;
}
const GrGLInterface* GrGLCreateNativeInterface() {