Index: Source/platform/graphics/skia/SkiaUtils.h |
diff --git a/Source/platform/graphics/skia/SkiaUtils.h b/Source/platform/graphics/skia/SkiaUtils.h |
index a54d28fac2abfdce619ed655b6e1372a0714e65e..934c07a70f848bdfb8b4468981ac232176679c65 100644 |
--- a/Source/platform/graphics/skia/SkiaUtils.h |
+++ b/Source/platform/graphics/skia/SkiaUtils.h |
@@ -97,10 +97,23 @@ inline SkPath::FillType WebCoreWindRuleToSkFillType(WindRule rule) |
return static_cast<SkPath::FillType>(rule); |
} |
+inline WindRule SkFillTypeToWindRule(SkPath::FillType fillType) |
+{ |
+ switch (fillType) { |
+ case SkPath::kWinding_FillType: |
+ case SkPath::kEvenOdd_FillType: |
+ return static_cast<WindRule>(fillType); |
+ default: |
+ ASSERT_NOT_REACHED(); |
+ break; |
+ } |
+ return RULE_NONZERO; |
+} |
+ |
// Determine if a given WebKit point is contained in a path |
bool SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType); |
-SkMatrix affineTransformToSkMatrix(const AffineTransform&); |
+SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&); |
bool nearlyIntegral(float value); |