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

Unified Diff: Source/platform/transforms/AffineTransform.cpp

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | « Source/platform/transforms/AffineTransform.h ('k') | Source/platform/transforms/TransformationMatrix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/AffineTransform.cpp
diff --git a/Source/core/platform/graphics/transforms/AffineTransform.cpp b/Source/platform/transforms/AffineTransform.cpp
similarity index 97%
rename from Source/core/platform/graphics/transforms/AffineTransform.cpp
rename to Source/platform/transforms/AffineTransform.cpp
index 277018f75ff1c81413aad14e656f50f3551c9517..4a190bff9ce2a160ff7e2726c841524ee16edc59 100644
--- a/Source/core/platform/graphics/transforms/AffineTransform.cpp
+++ b/Source/platform/transforms/AffineTransform.cpp
@@ -26,14 +26,12 @@
*/
#include "config.h"
-#include "core/platform/graphics/transforms/AffineTransform.h"
-
-#include "core/platform/FloatConversion.h"
-#include "core/platform/graphics/FloatQuad.h"
-#include "core/platform/graphics/FloatRect.h"
-#include "core/platform/graphics/IntRect.h"
-#include "core/platform/graphics/skia/SkiaUtils.h"
+#include "platform/transforms/AffineTransform.h"
+#include "platform/FloatConversion.h"
+#include "platform/geometry/FloatQuad.h"
+#include "platform/geometry/FloatRect.h"
+#include "platform/geometry/IntRect.h"
#include "wtf/MathExtras.h"
namespace WebCore {
@@ -349,6 +347,11 @@ TransformationMatrix AffineTransform::toTransformationMatrix() const
m_transform[3], m_transform[4], m_transform[5]);
}
+static inline SkScalar WebCoreDoubleToSkScalar(double d)
+{
+ return SkDoubleToScalar(std::isfinite(d) ? d : 0);
+}
+
AffineTransform::operator SkMatrix() const
{
SkMatrix result;
« no previous file with comments | « Source/platform/transforms/AffineTransform.h ('k') | Source/platform/transforms/TransformationMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698