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

Unified Diff: src/core/SkBitmapProcState.h

Issue 733163003: Switch SkBitmapProcState's SkFractionalInt to 32.32. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « include/core/SkFixed.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcState.h
diff --git a/src/core/SkBitmapProcState.h b/src/core/SkBitmapProcState.h
index ac4f1a47102c950d0822dfed60c9772cec795b72..dd1f0bff4515ccb2db4dd29bb95dea5610d64511 100644
--- a/src/core/SkBitmapProcState.h
+++ b/src/core/SkBitmapProcState.h
@@ -14,21 +14,11 @@
#include "SkMipMap.h"
#include "SkPaint.h"
-#define FractionalInt_IS_64BIT
-
-#ifdef FractionalInt_IS_64BIT
- typedef SkFixed48 SkFractionalInt;
- #define SkScalarToFractionalInt(x) SkScalarToFixed48(x)
- #define SkFractionalIntToFixed(x) SkFixed48ToFixed(x)
- #define SkFixedToFractionalInt(x) SkFixedToFixed48(x)
- #define SkFractionalIntToInt(x) SkFixed48ToInt(x)
-#else
- typedef SkFixed SkFractionalInt;
- #define SkScalarToFractionalInt(x) SkScalarToFixed(x)
- #define SkFractionalIntToFixed(x) (x)
- #define SkFixedToFractionalInt(x) (x)
- #define SkFractionalIntToInt(x) ((x) >> 16)
-#endif
+typedef SkFixed3232 SkFractionalInt;
+#define SkScalarToFractionalInt(x) SkScalarToFixed3232(x)
+#define SkFractionalIntToFixed(x) SkFixed3232ToFixed(x)
+#define SkFixedToFractionalInt(x) SkFixedToFixed3232(x)
+#define SkFractionalIntToInt(x) SkFixed3232ToInt(x)
class SkPaint;
« no previous file with comments | « include/core/SkFixed.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698