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 175633 617552f36f090497afe041e670f0e7d085a5f800
parent 175632 969a4a48c64e24c7787ab335dabb2afccecd871b
child 175634 c0cb72104db65edd3acb7e73bcf9abdb2b9117c5
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, bajaj
bugs952235
milestone28.0a2
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
@@ -48,17 +48,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;