diff options
author | robertphillips <robertphillips@google.com> | 2015-03-26 19:57:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-26 19:57:08 -0700 |
commit | 1d24b8dfe9aac9cadaf3914b8574a4ff6e9bc19d (patch) | |
tree | 19239f2bd95cbdac37f3ec58149fdd30ecd11fe6 /bench/HairlinePathBench.cpp | |
parent | 41f88f0251cf48eb06f3f8d143aac8562a230889 (diff) |
Add matrix constructing helpers to SkMatrix
Review URL: https://codereview.chromium.org/1034273002
Diffstat (limited to 'bench/HairlinePathBench.cpp')
-rw-r--r-- | bench/HairlinePathBench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/HairlinePathBench.cpp b/bench/HairlinePathBench.cpp index 5b77ff8b49..67f5476724 100644 --- a/bench/HairlinePathBench.cpp +++ b/bench/HairlinePathBench.cpp @@ -59,8 +59,7 @@ protected: SkPath path; this->makePath(&path); if (fFlags & kBig_Flag) { - SkMatrix m; - m.setScale(SkIntToScalar(3), SkIntToScalar(3)); + const SkMatrix m = SkMatrix::MakeScale(SkIntToScalar(3), SkIntToScalar(3)); path.transform(m); } |