Fix SampleApp picture-mode transform.
authorfmalita <fmalita@chromium.org>
Fri, 23 Jan 2015 18:03:15 +0000 (10:03 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 23 Jan 2015 18:03:15 +0000 (10:03 -0800)
The multi-picture-draw path should not ignore the inherited transform.

R=reed@google.com,robertphillips@google.com

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

samplecode/SampleApp.cpp

index 05eac2f..105976d 100644 (file)
@@ -1362,6 +1362,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) {
                             SkCanvas* c = surfs[index]->getCanvas();
                             c->translate(SkIntToScalar(-x * n.width()),
                                          SkIntToScalar(-y * n.height()));
+                            c->concat(orig->getTotalMatrix());
                             md.add(c, picture, NULL, NULL);
                             index++;
                         }