mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 772726. Part 2: When BasicLayers is compositing directly to an Azure DrawTarget, Transform3D should handle the destination not having a CurrentSurface. r=mattwoodrow
--HG-- extra : rebase_source : 838f6b643d9ab4ca10a0bf9612eb2081e728288f
This commit is contained in:
parent
98cf4c17fa
commit
53cc22904d
@ -617,8 +617,7 @@ Transform3D(gfxASurface* aSource, gfxContext* aDest,
|
|||||||
|
|
||||||
// Create a surface the size of the transformed object.
|
// Create a surface the size of the transformed object.
|
||||||
nsRefPtr<gfxASurface> dest = aDest->CurrentSurface();
|
nsRefPtr<gfxASurface> dest = aDest->CurrentSurface();
|
||||||
nsRefPtr<gfxImageSurface> destImage = dest->GetAsImageSurface();
|
nsRefPtr<gfxImageSurface> destImage;
|
||||||
destImage = nsnull;
|
|
||||||
gfxPoint offset;
|
gfxPoint offset;
|
||||||
bool blitComplete;
|
bool blitComplete;
|
||||||
if (!destImage || aDontBlit || !aDest->ClipContainsRect(destRect)) {
|
if (!destImage || aDontBlit || !aDest->ClipContainsRect(destRect)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user