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

Unified Diff: gm/hairlines.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 | « gm/gradients.cpp ('k') | gm/imagefiltersgraph.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/hairlines.cpp
diff --git a/gm/hairlines.cpp b/gm/hairlines.cpp
index d0f141ba91b477982669ddf4d690801764e0cd2b..fb99d238eacd7b8f8b9c296c09e510a0340b75c6 100644
--- a/gm/hairlines.cpp
+++ b/gm/hairlines.cpp
@@ -95,13 +95,13 @@ protected:
{
SkPath* problem2 = &fPaths.push_back();
problem2->moveTo(SkIntToScalar(5), SkIntToScalar(1));
- problem2->lineTo(SkFloatToScalar(4.32787323f), SkFloatToScalar(1.67212653f));
- problem2->cubicTo(SkFloatToScalar(2.75223875f), SkFloatToScalar(3.24776125f),
- SkFloatToScalar(3.00581908f), SkFloatToScalar(4.51236057f),
- SkFloatToScalar(3.7580452f), SkFloatToScalar(4.37367964f));
- problem2->cubicTo(SkFloatToScalar(4.66472578f), SkFloatToScalar(3.888381f),
- SkFloatToScalar(5.f), SkFloatToScalar(2.875f),
- SkFloatToScalar(5.f), SkFloatToScalar(1.f));
+ problem2->lineTo(4.32787323f, 1.67212653f);
+ problem2->cubicTo(2.75223875f, 3.24776125f,
+ 3.00581908f, 4.51236057f,
+ 3.7580452f, 4.37367964f);
+ problem2->cubicTo(4.66472578f, 3.888381f,
+ 5.f, 2.875f,
+ 5.f, 1.f);
problem2->close();
}
@@ -137,8 +137,8 @@ protected:
{
// Arc example to test imperfect truncation bug (crbug.com/295626)
static const SkScalar kRad = SkIntToScalar(2000);
- static const SkScalar kStartAngle = SkFloatToScalar(262.59717f);
- static const SkScalar kSweepAngle = SkScalarHalf(SkFloatToScalar(17.188717f));
+ static const SkScalar kStartAngle = 262.59717f;
+ static const SkScalar kSweepAngle = SkScalarHalf(17.188717f);
SkPath* bug = &fPaths.push_back();
« no previous file with comments | « gm/gradients.cpp ('k') | gm/imagefiltersgraph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698