Bug 1405589: Have DrawTargetCapture properly forward SupportsRegionClipping. r=dvander
authorBas Schouten <bschouten@mozilla.com>
Fri, 06 Oct 2017 16:27:41 +0000
changeset 427380 a9ddc3f6748c15d975b14f7433b2570157acfd79
parent 427379 0d8fa7a51ad08d79df8267b220322200532125d1
child 427381 073b52890be1f0af93245d2697de1dfa464ec96a
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +0000
reviewersdvander
bugs1405589
milestone58.0a1
Bug 1405589: Have DrawTargetCapture properly forward SupportsRegionClipping. r=dvander MozReview-Commit-ID: 9Fu3omRFtLk
gfx/2d/DrawTargetCapture.h
--- a/gfx/2d/DrawTargetCapture.h
+++ b/gfx/2d/DrawTargetCapture.h
@@ -98,16 +98,18 @@ public:
                          const Matrix& aMaskTransform,
                          const IntRect& aBounds,
                          bool aCopyBackground) override;
   virtual void PopLayer() override;
 
 
   virtual void SetTransform(const Matrix &aTransform) override;
 
+  virtual bool SupportsRegionClipping() const override { return mRefDT->SupportsRegionClipping(); }
+
   virtual already_AddRefed<SourceSurface> CreateSourceSurfaceFromData(unsigned char *aData,
                                                                   const IntSize &aSize,
                                                                   int32_t aStride,
                                                                   SurfaceFormat aFormat) const override
   {
     return mRefDT->CreateSourceSurfaceFromData(aData, aSize, aStride, aFormat);
   }
   virtual already_AddRefed<SourceSurface> OptimizeSourceSurface(SourceSurface *aSurface) const override