#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,
};
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
CompositeDifference
};
+enum ShadowMode {
+ DrawShadowAndForeground,
+ DrawShadowOnly,
+};
+
enum GradientSpreadMethod {
SpreadMethodPad,
SpreadMethodReflect,
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&);
PLATFORM_EXPORT String textBaselineName(TextBaseline);
PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&);
-} // namespace WebCore
+} // namespace blink
#endif