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

Unified Diff: include/core/SkFixed.h

Issue 1831303003: Remove Sk48Dot16. No longer used. (Closed) Base URL: https://skia.googlesource.com/skia@master
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkFixed.h
diff --git a/include/core/SkFixed.h b/include/core/SkFixed.h
index 1541e32105ff55cb995cfcbce4a3d2cf1ba5127c..b504f2f94cd17a53c446b3525d6cdc8a0b7d4d26 100644
--- a/include/core/SkFixed.h
+++ b/include/core/SkFixed.h
@@ -152,19 +152,4 @@ typedef int64_t SkFixed3232; // 32.32
#define SkScalarToFixed3232(x) SkFloatToFixed3232(x)
-///////////////////////////////////////////////////////////////////////////////
-
-// 64bits wide, with a 16bit bias. Useful when accumulating lots of 16.16 so
-// we don't overflow along the way
-typedef int64_t Sk48Dot16;
-
-#define Sk48Dot16FloorToInt(x) static_cast<int>((x) >> 16)
-
-static inline float Sk48Dot16ToScalar(Sk48Dot16 x) {
- return static_cast<float>(x * 1.5258789e-5); // x * (1.0f / (1 << 16))
-}
-#define SkFloatTo48Dot16(x) (static_cast<Sk48Dot16>((x) * (1 << 16)))
-
-#define SkScalarTo48Dot16(x) SkFloatTo48Dot16(x)
-
#endif
« 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