fix concat order for local matrices

BUG=skia:
R=bsalomon@google.com

Author: reed@google.com

Review URL: https://codereview.chromium.org/446013004
This commit is contained in:
reed 2014-08-06 12:43:09 -07:00 committed by Commit bot
parent 27ff227589
commit 3ffade63b3

View File

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