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

Unified Diff: Source/platform/transforms/TransformationMatrix.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/TransformationMatrix.h ('k') | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/transforms/TransformationMatrix.cpp
diff --git a/Source/core/platform/graphics/transforms/TransformationMatrix.cpp b/Source/platform/transforms/TransformationMatrix.cpp
similarity index 99%
rename from Source/core/platform/graphics/transforms/TransformationMatrix.cpp
rename to Source/platform/transforms/TransformationMatrix.cpp
index e95936b0da877536e3c278f16cdd642903973d57..8bdf68e71faad678096dae1e43b9863c7dff4c56 100644
--- a/Source/core/platform/graphics/transforms/TransformationMatrix.cpp
+++ b/Source/platform/transforms/TransformationMatrix.cpp
@@ -26,14 +26,13 @@
*/
#include "config.h"
-#include "core/platform/graphics/transforms/TransformationMatrix.h"
+#include "platform/transforms/TransformationMatrix.h"
-#include "core/platform/graphics/FloatQuad.h"
-#include "core/platform/graphics/FloatRect.h"
-#include "core/platform/graphics/IntRect.h"
-#include "core/platform/graphics/LayoutRect.h"
-#include "core/platform/graphics/skia/SkiaUtils.h"
-#include "core/platform/graphics/transforms/AffineTransform.h"
+#include "platform/geometry/FloatQuad.h"
+#include "platform/geometry/FloatRect.h"
+#include "platform/geometry/IntRect.h"
+#include "platform/geometry/LayoutRect.h"
+#include "platform/transforms/AffineTransform.h"
#include "wtf/Assertions.h"
#include "wtf/MathExtras.h"
@@ -1328,6 +1327,11 @@ AffineTransform TransformationMatrix::toAffineTransform() const
m_matrix[1][1], m_matrix[3][0], m_matrix[3][1]);
}
+static inline SkScalar WebCoreDoubleToSkScalar(double d)
+{
+ return SkDoubleToScalar(std::isfinite(d) ? d : 0);
+}
+
TransformationMatrix::operator SkMatrix() const
{
SkMatrix result;
« no previous file with comments | « Source/platform/transforms/TransformationMatrix.h ('k') | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698