Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / graphics / GraphicsTypes.h
index 6eecfc7..9ca701e 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,
@@ -43,10 +44,10 @@ enum StrokeStyle {
 };
 
 enum InterpolationQuality {
-    InterpolationNone,
-    InterpolationLow,
-    InterpolationMedium,
-    InterpolationHigh,
+    InterpolationNone = SkPaint::kNone_FilterLevel,
+    InterpolationLow = SkPaint::kLow_FilterLevel,
+    InterpolationMedium = SkPaint::kMedium_FilterLevel,
+    InterpolationHigh = SkPaint::kHigh_FilterLevel,
 #if USE(LOW_QUALITY_IMAGE_INTERPOLATION)
     InterpolationDefault = InterpolationLow,
 #else
@@ -71,6 +72,11 @@ enum CompositeOperator {
     CompositeDifference
 };
 
+enum ShadowMode {
+    DrawShadowAndForeground,
+    DrawShadowOnly,
+};
+
 enum GradientSpreadMethod {
     SpreadMethodPad,
     SpreadMethodReflect,
@@ -108,8 +114,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 +134,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