call through to to the virtual drawPath from drawOval, for subclasses (e.g. pdf)
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 12 Feb 2013 15:44:10 +0000 (15:44 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 12 Feb 2013 15:44:10 +0000 (15:44 +0000)
that don't choose to override drawOval.

git-svn-id: http://skia.googlecode.com/svn/trunk@7701 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkDevice.cpp

index 9aa652d..78ce0f6 100644 (file)
@@ -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,