mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 950903 - 7/8 - Simplifications around EGLSurface override - r=jgilbert
This commit is contained in:
parent
ba93ad0ec2
commit
3b48c14b33
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user