From 4caf3dff6a9495b597947fc8eb16f00301a182c1 Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Thu, 17 Jan 2019 21:54:00 +0100 Subject: [PATCH] Bug 1520909: Properly support SupportsRegionClipping in DrawTargetDual. r=mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D16899 --HG-- extra : rebase_source : 03ad075eb41e13b64686dd9939fe5dbcbb6e107e extra : amend_source : 3ded96951d4ad113cbd55ff96c8cfbf8a4f4273a --- gfx/2d/DrawTargetDual.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/2d/DrawTargetDual.h b/gfx/2d/DrawTargetDual.h index 3972b735a960..0ddf9f5ca7ed 100644 --- a/gfx/2d/DrawTargetDual.h +++ b/gfx/2d/DrawTargetDual.h @@ -69,6 +69,10 @@ class DrawTargetDual : public DrawTarget { mB->SetTransform(aTransform); } + virtual bool SupportsRegionClipping() const override { + return mA->SupportsRegionClipping() && mB->SupportsRegionClipping(); + } + virtual void DrawSurface(SourceSurface *aSurface, const Rect &aDest, const Rect &aSource, const DrawSurfaceOptions &aSurfOptions,