From: reed Date: Wed, 6 Aug 2014 19:43:09 +0000 (-0700) Subject: fix concat order for local matrices X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~6452 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ffade63b3c97604f8aa3fb1a432e8ed0f9ba6e7;p=platform%2Fupstream%2FlibSkiaSharp.git fix concat order for local matrices BUG=skia: R=bsalomon@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/446013004 --- diff --git a/src/core/SkLocalMatrixShader.cpp b/src/core/SkLocalMatrixShader.cpp index c77f38d..e5d9248 100644 --- a/src/core/SkLocalMatrixShader.cpp +++ b/src/core/SkLocalMatrixShader.cpp @@ -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();