diff options
author | 2015-11-22 14:51:00 -0800 | |
---|---|---|
committer | 2015-11-22 14:51:00 -0800 | |
commit | 7ea33f5e1ae9eb1fb1e7377d6edf6acdcf71d103 (patch) | |
tree | 92aa7841b61ab93ec8a95d834e309ae0d2cf04e8 /src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp | |
parent | de3aac8cea8a7113f31591e6e02c51fe0ac45280 (diff) |
Initial version of external_oes texture support and unit test
Committed: https://skia.googlesource.com/skia/+/27a048700778d4cebfc23301d1780649791b0e03
Review URL: https://codereview.chromium.org/1451683002
Diffstat (limited to 'src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp')
-rw-r--r-- | src/gpu/gl/egl/GrGLCreateNativeInterface_egl.cpp | 10 |
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() { |