mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 907463. Backout OP_SOURCE optimisation from bug 907926. r=mattwoodrow
This commit is contained in:
parent
d4f355d9c3
commit
5bbb0239b5
@ -546,7 +546,10 @@ ContentClientDoubleBuffered::UpdateDestinationFrom(const RotatedBuffer& aSource,
|
||||
|
||||
if (SupportsAzureContent()) {
|
||||
MOZ_ASSERT(!destCtx->IsCairo());
|
||||
aSource.DrawBufferWithRotation(destCtx->GetDrawTarget(), BUFFER_BLACK, 1.0, OP_SOURCE);
|
||||
if (destCtx->GetDrawTarget()->GetFormat() == FORMAT_B8G8R8A8) {
|
||||
destCtx->GetDrawTarget()->ClearRect(Rect(0, 0, mFrontBufferRect.width, mFrontBufferRect.height));
|
||||
}
|
||||
aSource.DrawBufferWithRotation(destCtx->GetDrawTarget(), BUFFER_BLACK);
|
||||
} else {
|
||||
aSource.DrawBufferWithRotation(destCtx, BUFFER_BLACK);
|
||||
}
|
||||
@ -564,7 +567,10 @@ ContentClientDoubleBuffered::UpdateDestinationFrom(const RotatedBuffer& aSource,
|
||||
|
||||
if (SupportsAzureContent()) {
|
||||
MOZ_ASSERT(!destCtx->IsCairo());
|
||||
aSource.DrawBufferWithRotation(destCtx->GetDrawTarget(), BUFFER_WHITE, 1.0, OP_SOURCE);
|
||||
if (destCtx->GetDrawTarget()->GetFormat() == FORMAT_B8G8R8A8) {
|
||||
destCtx->GetDrawTarget()->ClearRect(Rect(0, 0, mFrontBufferRect.width, mFrontBufferRect.height));
|
||||
}
|
||||
aSource.DrawBufferWithRotation(destCtx->GetDrawTarget(), BUFFER_WHITE);
|
||||
} else {
|
||||
aSource.DrawBufferWithRotation(destCtx, BUFFER_WHITE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user