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

Unified Diff: src/core/SkPaint.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: src/core/SkPaint.cpp
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
index 6c6f0e6cb9a0ffab1a52c4758acb805662b49f85..d6948dd83fb60c540b4afa3015ad4161c7d3ba36 100644
--- a/src/core/SkPaint.cpp
+++ b/src/core/SkPaint.cpp
@@ -1696,7 +1696,7 @@ void SkScalerContext::MakeRec(const SkPaint& paint,
* With higher values lcd fringing is worse and the smoothing effect of
* partial coverage is diminished.
*/
- rec->setContrast(SkFloatToScalar(0.5f));
+ rec->setContrast(0.5f);
#endif
rec->fReservedAlign = 0;

Powered by Google App Engine
This is Rietveld 408576698