Remove flush from RotatedBuffer::UpdateDestinationFrom (
bug 1410919, r?nical)
MozReview-Commit-ID: AKuz0sUj8Jf
--- a/gfx/layers/RotatedBuffer.cpp
+++ b/gfx/layers/RotatedBuffer.cpp
@@ -250,36 +250,32 @@ RotatedBuffer::UpdateDestinationFrom(con
if (isClippingCheap) {
gfxUtils::ClipToRegion(destDT, iter.mDrawRegion);
}
aSource.DrawBufferWithRotation(destDT, BUFFER_BLACK, 1.0, CompositionOp::OP_SOURCE);
if (isClippingCheap) {
destDT->PopClip();
}
- // Flush the destination before the sources become inaccessible (Unlock).
- destDT->Flush();
ReturnDrawTarget(destDT);
}
if (aSource.HaveBufferOnWhite() && HaveBufferOnWhite()) {
DrawIterator whiteIter;
while (DrawTarget* destDT =
BorrowDrawTargetForQuadrantUpdate(aUpdateRect, BUFFER_WHITE, &whiteIter)) {
bool isClippingCheap = IsClippingCheap(destDT, whiteIter.mDrawRegion);
if (isClippingCheap) {
gfxUtils::ClipToRegion(destDT, whiteIter.mDrawRegion);
}
aSource.DrawBufferWithRotation(destDT, BUFFER_WHITE, 1.0, CompositionOp::OP_SOURCE);
if (isClippingCheap) {
destDT->PopClip();
}
- // Flush the destination before the sources become inaccessible (Unlock).
- destDT->Flush();
ReturnDrawTarget(destDT);
}
}
}
static void
WrapRotationAxis(int32_t* aRotationPoint, int32_t aSize)
{