Bug 952235 - Handle device offset when applying pattern transform. r=bas, a=bajaj
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 07 Jan 2014 10:25:05 +0900
changeset 167881 3e7a87ce6a18967f0fe724c85c90c5b80c5f8f9d
parent 167880 3f97da3df62223e5f07584688db8d95609ccb213
child 167882 542ad447aa50a8626a7f8c87ae1c94bc441d6f1c
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, bajaj
bugs952235
milestone27.0
Bug 952235 - Handle device offset when applying pattern transform. r=bas, a=bajaj
gfx/thebes/gfxContext.cpp
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -47,17 +47,17 @@ public:
     gfxContext::AzureState &state = mContext->CurrentState();
 
     if (state.pattern) {
       return *state.pattern->GetPattern(mContext->mDT, state.patternTransformChanged ? &state.patternTransform : nullptr);
     } else if (state.sourceSurface) {
       Matrix transform = state.surfTransform;
 
       if (state.patternTransformChanged) {
-        Matrix mat = mContext->mTransform;
+        Matrix mat = mContext->GetDTTransform();
         mat.Invert();
 
         transform = transform * state.patternTransform * mat;
       }
 
       mPattern = new (mSurfacePattern.addr())
         SurfacePattern(state.sourceSurface, EXTEND_CLAMP, transform);
       return *mPattern;