Bug 1014614 - Support attach/detach of GLContext to AndroidSurfaceTexture r=jgilbert

This commit is contained in:
James Willcox
2014-10-17 10:35:11 -05:00
parent c8af0d18f4
commit a26f168731
6 changed files with 178 additions and 12 deletions

View File

@@ -102,6 +102,11 @@ void TexturePoolOGL::Fill(GLContext* aContext)
sMonitor->NotifyAll();
}
GLContext* TexturePoolOGL::GetGLContext()
{
return sActiveContext;
}
void TexturePoolOGL::Init()
{
sMonitor = new Monitor("TexturePoolOGL.sMonitor");