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 c77f38d6d68bcf53d6a230bce164d3f8a32a6ce3..e5d92484700bbf593ab4e1f7119bc15045e72b98 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();