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

Unified Diff: src/effects/gradients/SkClampRange.h

Issue 824063004: Remove SK_SUPPORT_LEGACY_GRADIENT_PRECISION (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/SkClampRange.h
diff --git a/src/effects/gradients/SkClampRange.h b/src/effects/gradients/SkClampRange.h
index 2f7bf6e09a010f5072ca9102a52dfbf2eff912bf..e970d4319f135f7739e6b811d3a25e12f3071b9a 100644
--- a/src/effects/gradients/SkClampRange.h
+++ b/src/effects/gradients/SkClampRange.h
@@ -11,19 +11,11 @@
#include "SkFixed.h"
#include "SkScalar.h"
-#ifdef SK_SUPPORT_LEGACY_GRADIENT_PRECISION
- #define SkGradFixed SkFixed
- #define SkScalarToGradFixed SkScalarToFixed
- #define SkFixedToGradFixed(x) (x)
- #define SkGradFixedToFixed(x) (x)
- #define kFracMax_SkGradFixed 0xFFFF
-#else
- #define SkGradFixed SkFixed3232
- #define SkScalarToGradFixed SkScalarToFixed3232
- #define SkFixedToGradFixed SkFixedToFixed3232
- #define SkGradFixedToFixed(x) (SkFixed)((x) >> 16)
- #define kFracMax_SkGradFixed 0xFFFFFFFFLL
-#endif
+#define SkGradFixed SkFixed3232
+#define SkScalarToGradFixed SkScalarToFixed3232
+#define SkFixedToGradFixed SkFixedToFixed3232
+#define SkGradFixedToFixed(x) (SkFixed)((x) >> 16)
+#define kFracMax_SkGradFixed 0xFFFFFFFFLL
/**
* Iteration fixed fx by dx, clamping as you go to [0..kFracMax_SkGradFixed], this class
« no previous file with comments | « no previous file | src/effects/gradients/SkClampRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698