Bug 1117639 - Remove AbortFrame() because it is dead. r=bas.
This commit is contained in:
@@ -576,7 +576,7 @@ CompositorOGL::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
PROFILER_LABEL("CompositorOGL", "BeginFrame",
|
||||
js::ProfileEntry::Category::GRAPHICS);
|
||||
|
||||
MOZ_ASSERT(!mFrameInProgress, "frame still in progress (should have called EndFrame or AbortFrame");
|
||||
MOZ_ASSERT(!mFrameInProgress, "frame still in progress (should have called EndFrame");
|
||||
|
||||
mFrameInProgress = true;
|
||||
gfx::Rect rect;
|
||||
@@ -1322,18 +1322,6 @@ CompositorOGL::EndFrameForExternalComposition(const gfx::Matrix& aTransform)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CompositorOGL::AbortFrame()
|
||||
{
|
||||
mGLContext->fBindBuffer(LOCAL_GL_ARRAY_BUFFER, 0);
|
||||
mFrameInProgress = false;
|
||||
mCurrentRenderTarget = nullptr;
|
||||
|
||||
if (mTexturePool) {
|
||||
mTexturePool->EndFrame();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CompositorOGL::SetDestinationSurfaceSize(const gfx::IntSize& aSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user