Bug 1117639 - Remove AbortFrame() because it is dead. r=bas.

This commit is contained in:
Nicholas Nethercote
2015-01-05 15:54:51 -08:00
parent e334c07ce4
commit b6036175c1
7 changed files with 1 additions and 38 deletions

View File

@@ -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)
{