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

Unified Diff: bench/PathBench.cpp

Issue 1034273002: Add matrix constructing helpers to SkMatrix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « bench/HairlinePathBench.cpp ('k') | bench/SKPBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PathBench.cpp
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp
index a429e2f9728ee001918aa98886754c756b163993..710179a437107053db05f1baef58c13e35bf7f2b 100644
--- a/bench/PathBench.cpp
+++ b/bench/PathBench.cpp
@@ -57,8 +57,7 @@ protected:
SkPath path;
this->makePath(&path);
if (fFlags & kBig_Flag) {
- SkMatrix m;
- m.setScale(SkIntToScalar(10), SkIntToScalar(10));
+ const SkMatrix m = SkMatrix::MakeScale(SkIntToScalar(10), SkIntToScalar(10));
path.transform(m);
}
« no previous file with comments | « bench/HairlinePathBench.cpp ('k') | bench/SKPBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698