diff options
author | David 'Digit' Turner <digit@google.com> | 2015-02-25 22:12:12 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2015-03-20 16:15:37 +0100 |
commit | 0e54a28d4c901c7d3a6d418eb7ebf4be234b3221 (patch) | |
tree | be73199a147fb9c39ee86457e0a5ca4554235b22 /distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp | |
parent | 49e304bc67e2960cf6067f5d185adc90e05109f4 (diff) | |
download | qemu-0e54a28d4c901c7d3a6d418eb7ebf4be234b3221.tar.gz |
emugl: Get rid of EGLNativeContextType
Replace it with EglOS::Context* instead.
Change-Id: I5ad66fbd7f47bf741ccd47a3b84ce7e0e4828d28
Diffstat (limited to 'distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp')
-rw-r--r-- | distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp b/distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp index 8cf5c53cc3..28247c6532 100644 --- a/distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp +++ b/distrib/android-emugl/host/libs/Translator/EGL/EglContext.cpp @@ -26,17 +26,21 @@ bool EglContext::usingSurface(SurfacePtr surface) { return surface.Ptr() == m_read.Ptr() || surface.Ptr() == m_draw.Ptr(); } -EglContext::EglContext(EglDisplay *dpy, EGLNativeContextType context,ContextPtr shared_context, - EglConfig* config,GLEScontext* glesCtx,GLESVersion ver,ObjectNameManager* mngr): -m_dpy(dpy), -m_native(context), -m_config(config), -m_glesContext(glesCtx), -m_read(NULL), -m_draw(NULL), -m_version(ver), -m_mngr(mngr) -{ +EglContext::EglContext(EglDisplay *dpy, + EglOS::Context* context, + ContextPtr shared_context, + EglConfig* config, + GLEScontext* glesCtx, + GLESVersion ver, + ObjectNameManager* mngr) : + m_dpy(dpy), + m_native(context), + m_config(config), + m_glesContext(glesCtx), + m_read(NULL), + m_draw(NULL), + m_version(ver), + m_mngr(mngr) { m_shareGroup = shared_context.Ptr()? mngr->attachShareGroup(context,shared_context->nativeType()): mngr->createShareGroup(context); |