Bug 1028237 - Account for device offset for thebes layer masks. r=roc
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 30 Jun 2014 16:26:09 +1200
changeset 191428 f79302ac0ede016f26ee3d214572a352a103795b
parent 191427 f469455e0acd58ae5db87355ff24ce4f5ebc7cf7
child 191429 0ee3c7e56ab32c06afb52deca4e01a1ad2f02156
push id27047
push usercbook@mozilla.com
push dateMon, 30 Jun 2014 13:24:53 +0000
treeherdermozilla-central@7c794981d046 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1028237
milestone33.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 1028237 - Account for device offset for thebes layer masks. r=roc
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);