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

Unified Diff: gm/blurrect.cpp

Issue 85463005: remove SkFloatToScalar macro (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add failing test back 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
Index: gm/blurrect.cpp
diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp
index 5e31a1ca749fe2ffd110bf6580d22c3044aec0b1..6b50fe1a13886d4944059d3e9f8058d28c50b5f8 100644
--- a/gm/blurrect.cpp
+++ b/gm/blurrect.cpp
@@ -309,8 +309,8 @@ DEF_GM(return new BlurRectGM("blurrect", NULL, 0xFF, SkBlurMaskFilter::kSolid_Bl
DEF_GM(return new BlurRectGM("blurrect", NULL, 0xFF, SkBlurMaskFilter::kOuter_BlurStyle);)
DEF_GM(return new BlurRectGM("blurrect", NULL, 0xFF, SkBlurMaskFilter::kInner_BlurStyle);)
-static const SkScalar kBig = SkFloatToScalar(20);
-static const SkScalar kSmall = SkFloatToScalar(2);
+static const SkScalar kBig = 20;
+static const SkScalar kSmall = 2;
// regular size rects, blurs should be small enough not to completely overlap.

Powered by Google App Engine
This is Rietveld 408576698