mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
Bug 1436908 - Fix EGLSurface leak at RenderCompositorANGLE r=nical
This commit is contained in:
parent
87f465d8f7
commit
3315d3a267
@ -33,7 +33,6 @@ public:
|
||||
RenderCompositor(RefPtr<widget::CompositorWidget>&& aWidget);
|
||||
virtual ~RenderCompositor();
|
||||
|
||||
virtual bool Destroy() = 0;
|
||||
virtual bool BeginFrame() = 0;
|
||||
virtual void EndFrame() = 0;
|
||||
virtual void Pause() = 0;
|
||||
|
@ -41,6 +41,8 @@ RenderCompositorANGLE::RenderCompositorANGLE(RefPtr<widget::CompositorWidget>&&
|
||||
|
||||
RenderCompositorANGLE::~RenderCompositorANGLE()
|
||||
{
|
||||
DestroyEGLSurface();
|
||||
MOZ_ASSERT(!mEGLSurface);
|
||||
}
|
||||
|
||||
bool
|
||||
@ -165,13 +167,6 @@ RenderCompositorANGLE::Initialize()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
RenderCompositorANGLE::Destroy()
|
||||
{
|
||||
DestroyEGLSurface();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
RenderCompositorANGLE::BeginFrame()
|
||||
{
|
||||
|
@ -28,7 +28,6 @@ public:
|
||||
virtual ~RenderCompositorANGLE();
|
||||
bool Initialize();
|
||||
|
||||
bool Destroy() override;
|
||||
bool BeginFrame() override;
|
||||
void EndFrame() override;
|
||||
void Pause() override;
|
||||
|
@ -37,12 +37,6 @@ RenderCompositorOGL::~RenderCompositorOGL()
|
||||
{
|
||||
}
|
||||
|
||||
bool
|
||||
RenderCompositorOGL::Destroy()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
RenderCompositorOGL::BeginFrame()
|
||||
{
|
||||
|
@ -22,7 +22,6 @@ public:
|
||||
RefPtr<widget::CompositorWidget>&& aWidget);
|
||||
virtual ~RenderCompositorOGL();
|
||||
|
||||
bool Destroy() override;
|
||||
bool BeginFrame() override;
|
||||
void EndFrame() override;
|
||||
void Pause() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user