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/DashBench.cpp | |
parent | 41f88f0251cf48eb06f3f8d143aac8562a230889 (diff) |
Add matrix constructing helpers to SkMatrix
Review URL: https://codereview.chromium.org/1034273002
Diffstat (limited to 'bench/DashBench.cpp')
-rw-r--r-- | bench/DashBench.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/DashBench.cpp b/bench/DashBench.cpp index 17a9234926..bf0d456143 100644 --- a/bench/DashBench.cpp +++ b/bench/DashBench.cpp @@ -153,8 +153,7 @@ static void make_unit_star(SkPath* path, int n) { static void make_poly(SkPath* path) { make_unit_star(path, 9); - SkMatrix matrix; - matrix.setScale(SkIntToScalar(100), SkIntToScalar(100)); + const SkMatrix matrix = SkMatrix::MakeScale(SkIntToScalar(100), SkIntToScalar(100)); path->transform(matrix); } |