aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkCanvas.h1
-rw-r--r--src/core/SkCanvas.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 8fa73f6ac1..2b1da3b009 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -901,6 +901,7 @@ public:
class ClipVisitor {
public:
+ virtual ~ClipVisitor();
virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
};
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 17f8b83567..57f11df9f2 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -2066,3 +2066,7 @@ const SkPaint& SkCanvas::LayerIter::paint() const {
const SkRegion& SkCanvas::LayerIter::clip() const { return fImpl->getClip(); }
int SkCanvas::LayerIter::x() const { return fImpl->getX(); }
int SkCanvas::LayerIter::y() const { return fImpl->getY(); }
+
+///////////////////////////////////////////////////////////////////////////////
+
+SkCanvas::ClipVisitor::~ClipVisitor() { }