Bug 1520909: Properly support SupportsRegionClipping in DrawTargetDual. r=mattwoodrow
authorBas Schouten <bschouten@mozilla.com>
Thu, 17 Jan 2019 21:54:00 +0100
changeset 511628 68f8d74147d720e5376f1a250171e407a49ead64
parent 511627 a346775c25b358822a76d4e599520391fdac4d3f
child 511629 bd29a5bac8d217c40c85a4bb90f83a34c4ff38b7
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1520909
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1520909: Properly support SupportsRegionClipping in DrawTargetDual. r=mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D16899
gfx/2d/DrawTargetDual.h
--- a/gfx/2d/DrawTargetDual.h
+++ b/gfx/2d/DrawTargetDual.h
@@ -64,16 +64,20 @@ class DrawTargetDual : public DrawTarget
   FORWARD_FUNCTION(PopLayer)
 
   virtual void SetTransform(const Matrix &aTransform) override {
     mTransform = aTransform;
     mA->SetTransform(aTransform);
     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,
                            const DrawOptions &aOptions) override;
 
   virtual void DrawFilter(
       FilterNode *aNode, const Rect &aSourceRect, const Point &aDestPoint,
       const DrawOptions &aOptions = DrawOptions()) override {