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

Unified Diff: tests/DrawTextTest.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add flag to expose SkFloatToScalar to chromium Created 7 years, 1 month 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 | « tests/DrawBitmapRectTest.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/DrawTextTest.cpp
diff --git a/tests/DrawTextTest.cpp b/tests/DrawTextTest.cpp
index 4f3eb829a1bcfa045d0a6ff26d8688b6cf5a2e0e..b1bb19de65817537a8d3789c027c31403c0d66ac 100644
--- a/tests/DrawTextTest.cpp
+++ b/tests/DrawTextTest.cpp
@@ -80,8 +80,8 @@ static void test_drawText(skiatest::Reporter* reporter) {
for (float offsetY = 0.0f; offsetY < 1.0f; offsetY += (1.0f / 16.0f)) {
for (float offsetX = 0.0f; offsetX < 1.0f; offsetX += (1.0f / 16.0f)) {
- SkPoint point = SkPoint::Make(SkFloatToScalar(25.0f + offsetX),
- SkFloatToScalar(25.0f + offsetY));
+ SkPoint point = SkPoint::Make(25.0f + offsetX,
+ 25.0f + offsetY);
for (int align = 0; align < SkPaint::kAlignCount; ++align) {
paint.setTextAlign(static_cast<SkPaint::Align>(align));
« no previous file with comments | « tests/DrawBitmapRectTest.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698