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

Unified Diff: include/core/SkScalar.h

Issue 1767163003: Use float rather than SkFixed for gradient TileProcs. (Closed) Base URL: https://skia.googlesource.com/skia@scalar-pin-to-fixed
Patch Set: Created 4 years, 9 months 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 | « no previous file | src/effects/gradients/SkClampRange.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkScalar.h
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h
index 84b53c85751630a60c35e28b72b0a684c03d7f62..a18775457ebeabf7295cd3e3bfd76382aae08d4f 100644
--- a/include/core/SkScalar.h
+++ b/include/core/SkScalar.h
@@ -34,6 +34,7 @@ typedef float SkScalar;
#define SkFixedToScalar(x) SkFixedToFloat(x)
#define SkScalarToFixed(x) SkFloatToFixed(x)
+#define SkScalarPinToFixed(x) SkFloatPinToFixed(x)
#define SkScalarFloorToScalar(x) sk_float_floor(x)
#define SkScalarCeilToScalar(x) sk_float_ceil(x)
@@ -77,6 +78,7 @@ typedef double SkScalar;
#define SkFixedToScalar(x) SkFixedToDouble(x)
#define SkScalarToFixed(x) SkDoubleToFixed(x)
+#define SkScalarPinToFixed(x) SkDoublePinToFixed(x)
#define SkScalarFloorToScalar(x) floor(x)
#define SkScalarCeilToScalar(x) ceil(x)
« no previous file with comments | « no previous file | src/effects/gradients/SkClampRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698