fix concat order for local matrices
authorreed <reed@google.com>
Wed, 6 Aug 2014 19:43:09 +0000 (12:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 6 Aug 2014 19:43:09 +0000 (12:43 -0700)
BUG=skia:
R=bsalomon@google.com

Author: reed@google.com

Review URL: https://codereview.chromium.org/446013004

src/core/SkLocalMatrixShader.cpp

index c77f38d..e5d9248 100644 (file)
@@ -27,7 +27,7 @@ SkShader::Context* SkLocalMatrixShader::onCreateContext(const ContextRec& rec,
     ContextRec newRec(rec);
     SkMatrix tmp;
     if (rec.fLocalMatrix) {
-        tmp.setConcat(this->getLocalMatrix(), *rec.fLocalMatrix);
+        tmp.setConcat(*rec.fLocalMatrix, this->getLocalMatrix());
         newRec.fLocalMatrix = &tmp;
     } else {
         newRec.fLocalMatrix = &this->getLocalMatrix();