From: reed@google.com Date: Tue, 12 Feb 2013 15:44:10 +0000 (+0000) Subject: call through to to the virtual drawPath from drawOval, for subclasses (e.g. pdf) X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~13461 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f186757aa82911196c5f04b5ed55dc4bde894b76;p=platform%2Fupstream%2FlibSkiaSharp.git call through to to the virtual drawPath from drawOval, for subclasses (e.g. pdf) that don't choose to override drawOval. git-svn-id: http://skia.googlecode.com/svn/trunk@7701 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index 9aa652d..78ce0f6 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -361,8 +361,9 @@ void SkDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& p SkPath path; path.addOval(oval); - // call the non-virtual version - this->SkDevice::drawPath(draw, path, paint, NULL, true); + // call the VIRTUAL version, so any subclasses who do handle drawPath aren't + // required to override drawOval. + this->drawPath(draw, path, paint, NULL, true); } void SkDevice::drawPath(const SkDraw& draw, const SkPath& path,