diff options
Diffstat (limited to 'WebCore/platform/graphics/openvg/GraphicsContextOpenVG.cpp')
-rw-r--r-- | WebCore/platform/graphics/openvg/GraphicsContextOpenVG.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/WebCore/platform/graphics/openvg/GraphicsContextOpenVG.cpp b/WebCore/platform/graphics/openvg/GraphicsContextOpenVG.cpp index 04a5e26..0d16d4d 100644 --- a/WebCore/platform/graphics/openvg/GraphicsContextOpenVG.cpp +++ b/WebCore/platform/graphics/openvg/GraphicsContextOpenVG.cpp @@ -139,30 +139,30 @@ void GraphicsContext::drawConvexPolygon(size_t numPoints, const FloatPoint* poin UNUSED_PARAM(shouldAntialias); // FIXME } -void GraphicsContext::fillPath(const Path& path) +void GraphicsContext::fillPath() { if (paintingDisabled()) return; - // FIXME: Be smarter about this. - beginPath(); - addPath(path); - m_data->drawPath(VG_FILL_PATH, m_common->state.fillRule); } -void GraphicsContext::strokePath(const Path& path) +void GraphicsContext::strokePath() { if (paintingDisabled()) return; - // FIXME: Be smarter about this. - beginPath(); - addPath(path); - m_data->drawPath(VG_STROKE_PATH, m_common->state.fillRule); } +void GraphicsContext::drawPath() +{ + if (paintingDisabled()) + return; + + m_data->drawPath(VG_FILL_PATH | VG_STROKE_PATH, m_common->state.fillRule); +} + void GraphicsContext::fillRect(const FloatRect& rect) { if (paintingDisabled()) @@ -221,15 +221,11 @@ void GraphicsContext::clip(const FloatRect& rect) m_data->intersectClipRect(rect); } -void GraphicsContext::clipPath(const Path& path, WindRule clipRule) +void GraphicsContext::clipPath(WindRule clipRule) { if (paintingDisabled()) return; - // FIXME: Be smarter about this. - beginPath(); - addPath(path); - m_data->clipPath(*(m_data->currentPath()), PainterOpenVG::IntersectClip, clipRule); } |