diff options
Diffstat (limited to 'WebCore/platform/graphics/GraphicsContext.h')
-rw-r--r-- | WebCore/platform/graphics/GraphicsContext.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/platform/graphics/GraphicsContext.h b/WebCore/platform/graphics/GraphicsContext.h index e8ba0e4..76e897e 100644 --- a/WebCore/platform/graphics/GraphicsContext.h +++ b/WebCore/platform/graphics/GraphicsContext.h @@ -135,7 +135,6 @@ namespace WebCore { class GraphicsContextPrivate; class ImageBuffer; class KURL; - class Path; class Pattern; class SharedGraphicsContext3D; class TextRun; @@ -204,6 +203,7 @@ namespace WebCore { #if PLATFORM(CG) void applyStrokePattern(); void applyFillPattern(); + void drawPath(const Path&); #endif #if PLATFORM(ANDROID) @@ -245,9 +245,8 @@ namespace WebCore { void drawEllipse(const IntRect&); void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldAntialias = false); - void drawPath(); - void fillPath(); - void strokePath(); + void fillPath(const Path&); + void strokePath(const Path&); // Arc drawing (used by border-radius in CSS) just supports stroking at the moment. void strokeArc(const IntRect&, int startAngle, int angleSpan); @@ -288,7 +287,7 @@ namespace WebCore { void addInnerRoundedRectClip(const IntRect&, int thickness); void clipOut(const IntRect&); void clipOutRoundedRect(const IntRect&, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight); - void clipPath(WindRule); + void clipPath(const Path&, WindRule); void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antialias = true); void clipToImageBuffer(ImageBuffer*, const FloatRect&); @@ -323,7 +322,7 @@ namespace WebCore { void clearShadow(); void drawFocusRing(const Vector<IntRect>&, int width, int offset, const Color&); - void drawFocusRing(const Vector<Path>&, int width, int offset, const Color&); + void drawFocusRing(const Path&, int width, int offset, const Color&); void setLineCap(LineCap); void setLineDash(const DashArray&, float dashOffset); @@ -337,8 +336,10 @@ namespace WebCore { void setCompositeOperation(CompositeOperator); +#if PLATFORM(SKIA) || PLATFORM(WX) || PLATFORM(OPENVG) || OS(WINCE) void beginPath(); void addPath(const Path&); +#endif void clip(const Path&); @@ -428,7 +429,6 @@ namespace WebCore { #if PLATFORM(QT) bool inTransparencyLayer() const; - PlatformPath* currentPath(); void pushTransparencyLayerInternal(const QRect &rect, qreal opacity, QPixmap& alphaMask); void takeOwnershipOfPlatformContext(); static QPainter::CompositionMode toQtCompositionMode(CompositeOperator op); |