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

Unified Diff: tests/PaintTest.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/MathTest.cpp ('k') | tests/ParsePathTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PaintTest.cpp
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp
index 045c2d22e4c2c667c4fcc9690b1c0b6c57930c03..03c93d44c98c406a74d552fd097ef88475b42bd6 100644
--- a/tests/PaintTest.cpp
+++ b/tests/PaintTest.cpp
@@ -193,14 +193,14 @@ static void regression_cubic(skiatest::Reporter* reporter) {
SkPath path, stroke;
SkPaint paint;
- path.moveTo(SkFloatToScalar(460.2881309415525f),
- SkFloatToScalar(303.250847066498f));
- path.cubicTo(SkFloatToScalar(463.36378422175284f),
- SkFloatToScalar(302.1169735073363f),
- SkFloatToScalar(456.32239330810046f),
- SkFloatToScalar(304.720354932878f),
- SkFloatToScalar(453.15255460013304f),
- SkFloatToScalar(305.788586869862f));
+ path.moveTo(460.2881309415525f,
+ 303.250847066498f);
+ path.cubicTo(463.36378422175284f,
+ 302.1169735073363f,
+ 456.32239330810046f,
+ 304.720354932878f,
+ 453.15255460013304f,
+ 305.788586869862f);
SkRect fillR, strokeR;
fillR = path.getBounds();
@@ -225,13 +225,13 @@ static void regression_cubic(skiatest::Reporter* reporter) {
static void regression_measureText(skiatest::Reporter* reporter) {
SkPaint paint;
- paint.setTextSize(SkFloatToScalar(12.0f));
+ paint.setTextSize(12.0f);
SkRect r;
r.setLTRB(SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN, SK_ScalarNaN);
// test that the rect was reset
- paint.measureText("", 0, &r, SkFloatToScalar(1.0f));
+ paint.measureText("", 0, &r, 1.0f);
REPORTER_ASSERT(reporter, r.isEmpty());
}
« no previous file with comments | « tests/MathTest.cpp ('k') | tests/ParsePathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698