Bug 883004 - GCC bustage fix
authorJacek Caban <jacek@codeweavers.com>
Sat, 20 Jul 2013 12:37:04 +0200
changeset 139335 9c18b3b78bc739c40442ea3ab7ccab4fe92867d1
parent 139334 70669c459d460ed94912e987df77b38ff24a2961
child 139336 260b5acd1940eb3119b64e18c99868c001df434b
push id31342
push userjacek@codeweavers.com
push dateSat, 20 Jul 2013 10:40:27 +0000
treeherdermozilla-inbound@68bcfde4e82a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs883004
milestone25.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 883004 - GCC bustage fix
gfx/2d/DrawTargetD2D1.cpp
--- a/gfx/2d/DrawTargetD2D1.cpp
+++ b/gfx/2d/DrawTargetD2D1.cpp
@@ -163,18 +163,19 @@ DrawTargetD2D1::ClearRect(const Rect &aR
 
 void
 DrawTargetD2D1::MaskSurface(const Pattern &aSource,
                             SourceSurface *aMask,
                             Point aOffset,
                             const DrawOptions &aOptions)
 {
   RefPtr<ID2D1Bitmap> bitmap;
+  Matrix mat;
 
-  RefPtr<ID2D1Image> image = GetImageForSurface(aMask, Matrix(), EXTEND_CLAMP);
+  RefPtr<ID2D1Image> image = GetImageForSurface(aMask, mat, EXTEND_CLAMP);
 
   PrepareForDrawing(aOptions.mCompositionOp, aSource);
 
   // FillOpacityMask only works if the antialias mode is MODE_ALIASED
   mDC->SetAntialiasMode(D2D1_ANTIALIAS_MODE_ALIASED);
 
   IntSize size = aMask->GetSize();
   Rect maskRect = Rect(0.f, 0.f, Float(size.width), Float(size.height));