aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/DashBench.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-03-26 19:57:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-26 19:57:08 -0700
commit1d24b8dfe9aac9cadaf3914b8574a4ff6e9bc19d (patch)
tree19239f2bd95cbdac37f3ec58149fdd30ecd11fe6 /bench/DashBench.cpp
parent41f88f0251cf48eb06f3f8d143aac8562a230889 (diff)
Add matrix constructing helpers to SkMatrix
Diffstat (limited to 'bench/DashBench.cpp')
-rw-r--r--bench/DashBench.cpp3
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);
}