Followup to bug 570294: Need to use OPERATOR_SOURCE for copying surface->surface. r=roc

This commit is contained in:
Chris Jones
2010-09-02 23:14:12 -05:00
parent 1f199537b3
commit 5ebe5c508c

View File

@@ -1326,6 +1326,7 @@ BasicShadowableThebesLayer::PaintBuffer(gfxContext* aContext,
NS_ABORT_IF_FALSE(!!mBackBuffer, "should have a back buffer by now");
nsRefPtr<gfxContext> tmpCtx = new gfxContext(mBackBuffer);
tmpCtx->SetOperator(gfxContext::OPERATOR_SOURCE);
tmpCtx->DrawSurface(aContext->OriginalSurface(),
gfxIntSize(mBufferSize.width, mBufferSize.height));
@@ -1580,6 +1581,7 @@ BasicShadowableCanvasLayer::Paint(gfxContext* aContext,
// XXX this is yucky and slow. It'd be nice to draw directly into
// the shmem back buffer
nsRefPtr<gfxContext> tmpCtx = new gfxContext(mBackBuffer);
tmpCtx->SetOperator(gfxContext::OPERATOR_SOURCE);
tmpCtx->DrawSurface(mSurface, gfxSize(mBounds.width, mBounds.height));
BasicManager()->PaintedCanvas(BasicManager()->Hold(this),