Chromium Code Reviews| 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) |
|
pdr.
2013/10/01 23:21:28
Code duplication :(
|
| +{ |
| + return SkDoubleToScalar(std::isfinite(d) ? d : 0); |
| +} |
| + |
| AffineTransform::operator SkMatrix() const |
| { |
| SkMatrix result; |