Bug 883004 - GCC bustage fix
authorJacek Caban <jacek@codeweavers.com>
Sat, 20 Jul 2013 12:37:04 +0200
changeset 139367 9c18b3b78bc739c40442ea3ab7ccab4fe92867d1
parent 139366 70669c459d460ed94912e987df77b38ff24a2961
child 139368 260b5acd1940eb3119b64e18c99868c001df434b
push id24988
push useremorley@mozilla.com
push dateMon, 22 Jul 2013 13:46:20 +0000
treeherdermozilla-central@f80683d8c3e7 [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));