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

Unified Diff: include/core/SkScalar.h

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (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 | « bench/MathBench.cpp ('k') | include/core/SkString.h » ('j') | 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 47c74bc5a9db96aeb323fbbd201b30090bf039a2..b2d966cb3bbf79daba3cdd5beb6b4728afd0b2a2 100644
--- a/include/core/SkScalar.h
+++ b/include/core/SkScalar.h
@@ -8,7 +8,6 @@
#ifndef SkScalar_DEFINED
#define SkScalar_DEFINED
-#include "../private/SkFixed.h"
#include "../private/SkFloatingPoint.h"
// TODO: move this sort of check into SkPostConfig.h
@@ -32,9 +31,6 @@ typedef float SkScalar;
#define SK_ScalarNegativeInfinity SK_FloatNegativeInfinity
#define SK_ScalarNaN SK_FloatNaN
-#define SkFixedToScalar(x) SkFixedToFloat(x)
-#define SkScalarToFixed(x) SkFloatToFixed(x)
-
#define SkScalarFloorToScalar(x) sk_float_floor(x)
#define SkScalarCeilToScalar(x) sk_float_ceil(x)
#define SkScalarRoundToScalar(x) sk_float_floor((x) + 0.5f)
@@ -75,9 +71,6 @@ typedef double SkScalar;
#define SK_ScalarNegativeInfinity SK_DoubleNegativeInfinity
#define SK_ScalarNaN SK_DoubleNaN
-#define SkFixedToScalar(x) SkFixedToDouble(x)
-#define SkScalarToFixed(x) SkDoubleToFixed(x)
-
#define SkScalarFloorToScalar(x) floor(x)
#define SkScalarCeilToScalar(x) ceil(x)
#define SkScalarRoundToScalar(x) floor((x) + 0.5)
« no previous file with comments | « bench/MathBench.cpp ('k') | include/core/SkString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698