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

Unified Diff: include/core/SkScalar.h

Issue 772933002: Remove SK_SUPPORT_DEPRECATED_SCALARROUND. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | no next file » | 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 feea687d0a4d0bb6e05e04e7e89cbd4ea9cdcf1a..e0490e2b0beebc9b4b41bb32ff9b4542bb55918b 100644
--- a/include/core/SkScalar.h
+++ b/include/core/SkScalar.h
@@ -11,8 +11,6 @@
#include "SkFixed.h"
#include "SkFloatingPoint.h"
-//#define SK_SUPPORT_DEPRECATED_SCALARROUND
-
// TODO: move this sort of check into SkPostConfig.h
#define SK_SCALAR_IS_DOUBLE 0
#undef SK_SCALAR_IS_FLOAT
@@ -183,13 +181,6 @@ static inline bool SkScalarIsInt(SkScalar x) {
return x == (SkScalar)(int)x;
}
-// DEPRECATED : use ToInt or ToScalar variant
-#ifdef SK_SUPPORT_DEPRECATED_SCALARROUND
-# define SkScalarFloor(x) SkScalarFloorToInt(x)
-# define SkScalarCeil(x) SkScalarCeilToInt(x)
-# define SkScalarRound(x) SkScalarRoundToInt(x)
-#endif
-
/**
* Returns -1 || 0 || 1 depending on the sign of value:
* -1 if x < 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698