Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
[droid] add GetEGLDisplay, GetEGLContext for omx support
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla authored and Cory Fields committed Jul 2, 2012
1 parent 5c3ead6 commit ead161d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xbmc/windowing/egl/WinEGLPlatformGeneric.cpp
Expand Up @@ -356,4 +356,14 @@ EGLNativeWindowType CWinEGLPlatformGeneric::getNativeWindow()
return 0;
}

EGLDisplay CWinEGLPlatformGeneric::GetEGLDisplay()
{
return m_display;
}

EGLContext CWinEGLPlatformGeneric::GetEGLContext()
{
return m_context;
}

#endif
3 changes: 3 additions & 0 deletions xbmc/windowing/egl/WinEGLPlatformGeneric.h
Expand Up @@ -51,6 +51,9 @@ class CWinEGLPlatformGeneric
virtual bool SetVSync(bool enable);
virtual bool IsExtSupported(const char* extension);

virtual EGLDisplay GetEGLDisplay();
virtual EGLContext GetEGLContext();

protected:
virtual EGLNativeWindowType getNativeWindow();

Expand Down
10 changes: 10 additions & 0 deletions xbmc/windowing/egl/WinSystemGLES.cpp
Expand Up @@ -274,4 +274,14 @@ bool CWinSystemGLES::Show(bool raise)
return m_eglplatform->ShowWindow(true);
}

EGLDisplay CWinSystemGLES::GetEGLDisplay()
{
return m_eglplatform->GetEGLDisplay();
}

EGLContext CWinSystemGLES::GetEGLContext()
{
return m_eglplatform->GetEGLContext();
}

#endif
3 changes: 3 additions & 0 deletions xbmc/windowing/egl/WinSystemGLES.h
Expand Up @@ -54,6 +54,9 @@ class CWinSystemGLES : public CWinSystemBase, public CRenderSystemGLES
virtual bool Hide();
virtual bool Show(bool raise = true);

EGLDisplay GetEGLDisplay();
EGLContext GetEGLContext();

protected:
virtual bool PresentRenderImpl(const CDirtyRegionList &dirty);
virtual void SetVSyncImpl(bool enable);
Expand Down

0 comments on commit ead161d

Please sign in to comment.