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

Unified Diff: tests/ClipperTest.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/ClipCubicTest.cpp ('k') | tests/DrawBitmapRectTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ClipperTest.cpp
diff --git a/tests/ClipperTest.cpp b/tests/ClipperTest.cpp
index b4eee60c0191aaa951266d6844fdb94f5c768fcd..a81e6559f90c1cf3242288cbe991209f9018c1c1 100644
--- a/tests/ClipperTest.cpp
+++ b/tests/ClipperTest.cpp
@@ -22,8 +22,8 @@ static void test_hairclipping(skiatest::Reporter* reporter) {
SkCanvas canvas(bm);
canvas.clipRect(SkRect::MakeWH(SkIntToScalar(4), SkIntToScalar(2)));
- canvas.drawLine(SkFloatToScalar(1.5f), SkFloatToScalar(1.5f),
- SkFloatToScalar(3.5f), SkFloatToScalar(3.5f), paint);
+ canvas.drawLine(1.5f, 1.5f,
+ 3.5f, 3.5f, paint);
/**
* We had a bug where we misinterpreted the bottom of the clip, and
@@ -52,10 +52,10 @@ static void test_edgeclipper() {
SkEdgeClipper clipper;
const SkPoint pts[] = {
- { SkFloatToScalar(3.0995476e+010f), SkFloatToScalar(42.929779f) },
- { SkFloatToScalar(-3.0995163e+010f), SkFloatToScalar(51.050385f) },
- { SkFloatToScalar(-3.0995157e+010f), SkFloatToScalar(51.050392f) },
- { SkFloatToScalar(-3.0995134e+010f), SkFloatToScalar(51.050400f) },
+ { 3.0995476e+010f, 42.929779f },
+ { -3.0995163e+010f, 51.050385f },
+ { -3.0995157e+010f, 51.050392f },
+ { -3.0995134e+010f, 51.050400f },
};
const SkRect clip = { 0, 0, SkIntToScalar(300), SkIntToScalar(200) };
« no previous file with comments | « tests/ClipCubicTest.cpp ('k') | tests/DrawBitmapRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698