Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / graphics / GraphicsTypes.h
index b0938f3..2fac776 100644 (file)
 #include "platform/PlatformExport.h"
 #include "public/platform/WebBlendMode.h"
 #include "third_party/skia/include/core/SkPaint.h"
+#include "third_party/skia/include/core/SkPath.h"
 #include "wtf/Forward.h"
 
-namespace WebCore {
+namespace blink {
 
 enum StrokeStyle {
     NoStroke,
@@ -108,8 +109,13 @@ enum ColorFilter {
     ColorFilterLinearRGBToSRGB
 };
 
-PLATFORM_EXPORT String compositeOperatorName(CompositeOperator, blink::WebBlendMode);
-PLATFORM_EXPORT bool parseCompositeAndBlendOperator(const String&, CompositeOperator&, blink::WebBlendMode&);
+enum WindRule {
+    RULE_NONZERO = SkPath::kWinding_FillType,
+    RULE_EVENODD = SkPath::kEvenOdd_FillType
+};
+
+PLATFORM_EXPORT String compositeOperatorName(CompositeOperator, WebBlendMode);
+PLATFORM_EXPORT bool parseCompositeAndBlendOperator(const String&, CompositeOperator&, WebBlendMode&);
 
 PLATFORM_EXPORT String lineCapName(LineCap);
 PLATFORM_EXPORT bool parseLineCap(const String&, LineCap&);
@@ -123,6 +129,6 @@ PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&);
 PLATFORM_EXPORT String textBaselineName(TextBaseline);
 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&);
 
-} // namespace WebCore
+} // namespace blink
 
 #endif