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

Unified Diff: include/utils/SkCamera.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/utils/SkCamera.h
diff --git a/include/utils/SkCamera.h b/include/utils/SkCamera.h
index eafacbcd7d4973ba639915b46bcbe1e11b3d1439..ad74c81d2f7b3f96ede79f0d21091effed355fe1 100644
--- a/include/utils/SkCamera.h
+++ b/include/utils/SkCamera.h
@@ -19,17 +19,10 @@
class SkCanvas;
-#ifdef SK_SCALAR_IS_FIXED
- typedef SkFract SkUnitScalar;
- #define SK_UnitScalar1 SK_Fract1
- #define SkUnitScalarMul(a, b) SkFractMul(a, b)
- #define SkUnitScalarDiv(a, b) SkFractDiv(a, b)
-#else
- typedef float SkUnitScalar;
- #define SK_UnitScalar1 SK_Scalar1
- #define SkUnitScalarMul(a, b) SkScalarMul(a, b)
- #define SkUnitScalarDiv(a, b) SkScalarDiv(a, b)
-#endif
+typedef float SkUnitScalar;
+#define SK_UnitScalar1 SK_Scalar1
+#define SkUnitScalarMul(a, b) SkScalarMul(a, b)
+#define SkUnitScalarDiv(a, b) SkScalarDiv(a, b)
struct SkUnit3D {
SkUnitScalar fX, fY, fZ;
« no previous file with comments | « include/core/SkString.h ('k') | samplecode/SampleCircle.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698