diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/gfx/gl/gl_context_egl.cc | 4 | ||||
-rw-r--r-- | app/gfx/gl/gl_context_egl.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/gfx/gl/gl_context_egl.cc b/app/gfx/gl/gl_context_egl.cc index 7cfde87..1156635 100644 --- a/app/gfx/gl/gl_context_egl.cc +++ b/app/gfx/gl/gl_context_egl.cc @@ -85,6 +85,10 @@ bool BaseEGLContext::InitializeOneOff() { return true; } +EGLDisplay BaseEGLContext::GetDisplay() { + return g_display; +} + NativeViewEGLContext::NativeViewEGLContext(void* window) : window_(window), surface_(NULL), diff --git a/app/gfx/gl/gl_context_egl.h b/app/gfx/gl/gl_context_egl.h index 3f1884b..9c59825 100644 --- a/app/gfx/gl/gl_context_egl.h +++ b/app/gfx/gl/gl_context_egl.h @@ -9,7 +9,8 @@ #include "gfx/size.h" #include "app/gfx/gl/gl_context.h" -typedef void *EGLContext; +typedef void* EGLDisplay; +typedef void* EGLContext; typedef void* EGLSurface; namespace gfx { @@ -26,6 +27,8 @@ class BaseEGLContext : public GLContext { static bool InitializeOneOff(); + static EGLDisplay GetDisplay(); + private: DISALLOW_COPY_AND_ASSIGN(BaseEGLContext); }; |