Bug 1028237 - Account for device offset for thebes layer masks. r=roc, a=sledru
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 30 Jun 2014 16:26:09 +1200
changeset 207926 fe01ba8541157a125e545ea0b7ef6582f8658093
parent 207925 0e974612773f1b8f287d8cb4b76c69e4cd4336dd
child 207927 6cb4f604213bc02f96b59f00dbea59a8e97d9e22
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, sledru
bugs1028237
milestone32.0a2
Bug 1028237 - Account for device offset for thebes layer masks. r=roc, a=sledru
gfx/layers/basic/BasicThebesLayer.cpp
--- a/gfx/layers/basic/BasicThebesLayer.cpp
+++ b/gfx/layers/basic/BasicThebesLayer.cpp
@@ -114,17 +114,17 @@ BasicThebesLayer::PaintThebes(gfxContext
   gfxRect clipExtents;
   clipExtents = aContext->GetClipExtents();
 
   // Pull out the mask surface and transform here, because the mask
   // is internal to basic layers
   AutoMoz2DMaskData mask;
   SourceSurface* maskSurface = nullptr;
   Matrix maskTransform;
-  if (GetMaskData(aMaskLayer, Point(), &mask)) {
+  if (GetMaskData(aMaskLayer, aContext->GetDeviceOffset(), &mask)) {
     maskSurface = mask.GetSurface();
     maskTransform = mask.GetTransform();
   }
 
   if (!IsHidden() && !clipExtents.IsEmpty()) {
     mContentClient->DrawTo(this, aContext->GetDrawTarget(), opacity,
                            effectiveOperator,
                            maskSurface, &maskTransform);