Index: src/core/SkDevice.cpp |
=================================================================== |
--- src/core/SkDevice.cpp (revision 8845) |
+++ src/core/SkDevice.cpp (working copy) |
@@ -12,6 +12,7 @@ |
#include "SkMetaData.h" |
#include "SkRasterClip.h" |
#include "SkRect.h" |
+#include "SkRRect.h" |
#include "SkShader.h" |
SK_DEFINE_INST_COUNT(SkDevice) |
@@ -367,6 +368,16 @@ |
this->drawPath(draw, path, paint, NULL, true); |
} |
+void SkDevice::drawRRect(const SkDraw& draw, const SkRRect& rrect, const SkPaint& paint) { |
+ CHECK_FOR_NODRAW_ANNOTATION(paint); |
+ |
+ SkPath path; |
+ path.addRRect(rrect); |
+ // call the VIRTUAL version, so any subclasses who do handle drawPath aren't |
+ // required to override drawRRect. |
+ this->drawPath(draw, path, paint, NULL, true); |
+} |
+ |
void SkDevice::drawPath(const SkDraw& draw, const SkPath& path, |
const SkPaint& paint, const SkMatrix* prePathMatrix, |
bool pathIsMutable) { |