aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/TextBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/TextBench.cpp')
-rw-r--r--bench/TextBench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/TextBench.cpp b/bench/TextBench.cpp
index f4a7cddbae..6e9df4afc7 100644
--- a/bench/TextBench.cpp
+++ b/bench/TextBench.cpp
@@ -140,7 +140,7 @@ protected:
} else {
SkScalar x = x0 + rand.nextUScalar1() * dim.fX;
SkScalar y = y0 + rand.nextUScalar1() * dim.fY;
- canvas->drawText(fText.c_str(), fText.size(), x, y, paint);
+ canvas->drawString(fText, x, y, paint);
}
}
}