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

Unified Diff: include/core/SkFixed.h

Issue 117053002: remove SK_SCALAR_IS_[FLOAT,FIXED] and assume floats (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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
Index: include/core/SkFixed.h
diff --git a/include/core/SkFixed.h b/include/core/SkFixed.h
index 95a32a43b184e86164ce492132d1220dcfc198b4..ea5e44c39388f1b6b29f972080a9424a253d8a2d 100644
--- a/include/core/SkFixed.h
+++ b/include/core/SkFixed.h
@@ -282,10 +282,6 @@ typedef int64_t SkFixed48;
#define SkFixed48ToFixed(x) ((SkFixed)((x) >> 32))
#define SkFloatToFixed48(x) ((SkFixed48)((x) * (65536.0f * 65536.0f * 65536.0f)))
-#ifdef SK_SCALAR_IS_FLOAT
- #define SkScalarToFixed48(x) SkFloatToFixed48(x)
-#else
- #define SkScalarToFixed48(x) SkFixedToFixed48(x)
-#endif
+#define SkScalarToFixed48(x) SkFloatToFixed48(x)
#endif
« no previous file with comments | « include/config/SkUserConfig.h ('k') | include/core/SkFloatBits.h » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698