Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: samplecode/SampleApp.cpp

Issue 867303002: Fix SampleApp picture-mode transform. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 05eac2f471fba40ea4550d39c4ccacac74b776d1..105976d2f404f217972433d3d97b10b54b4819e4 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -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++;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698