Bug 950903 - 7/8 - Simplifications around EGLSurface override - r=jgilbert

This commit is contained in:
Benoit Jacob 2014-01-07 15:02:18 -05:00
parent ba93ad0ec2
commit 3b48c14b33
2 changed files with 1 additions and 15 deletions

View File

@ -833,16 +833,6 @@ GLContextProviderEGL::Shutdown()
{
}
GLContextEGL* DowncastGLContextEGL(GLContext* context)
{
return static_cast<GLContextEGL*>(context);
}
void SetEGLSurfaceOverride(GLContextEGL* context, EGLSurface surf)
{
context->SetEGLSurfaceOverride(surf);
}
} /* namespace gl */
} /* namespace mozilla */

View File

@ -12,10 +12,6 @@ using namespace mozilla::gfx;
namespace mozilla {
namespace gl {
class GLContextEGL;
void SetEGLSurfaceOverride(GLContextEGL* context, EGLSurface surf);
GLContextEGL* DowncastGLContextEGL(GLContext* context);
SurfaceFactory_ANGLEShareHandle*
SurfaceFactory_ANGLEShareHandle::Create(GLContext* gl,
ID3D10Device1* d3d,
@ -49,7 +45,7 @@ SharedSurface_ANGLEShareHandle::~SharedSurface_ANGLEShareHandle()
void
SharedSurface_ANGLEShareHandle::LockProdImpl()
{
SetEGLSurfaceOverride(DowncastGLContextEGL(mGL), mPBuffer);
GLContextEGL::Cast(mGL)->SetEGLSurfaceOverride(mPBuffer);
}
void