Chromium Code Reviews| Index: src/pdf/SkPDFDevice.cpp |
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
| index 1aed85632a7b978688d388f2641c8cd1431daf14..f89f3c283f6ead001f4036a7ce4c8507bd00830a 100644 |
| --- a/src/pdf/SkPDFDevice.cpp |
| +++ b/src/pdf/SkPDFDevice.cpp |
| @@ -27,6 +27,7 @@ |
| #include "SkPDFTypes.h" |
| #include "SkPDFUtils.h" |
| #include "SkRect.h" |
| +#include "SkRRect.h" |
| #include "SkString.h" |
| #include "SkTextFormatParams.h" |
| #include "SkTemplates.h" |
| @@ -931,6 +932,13 @@ void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& rect, |
| &content.entry()->fContent); |
| } |
| +void SkPDFDevice::drawRRect(const SkDraw& draw, const SkRRect& rrect, |
| + const SkPaint& paint) { |
| + SkPath path; |
| + path.addRRect(rrect); |
| + this->drawPath(draw, path, paint, NULL, true); |
|
scroggo
2013/11/04 19:52:54
PDF would not draw a blurred round rect. The mask
|
| +} |
| + |
| void SkPDFDevice::drawPath(const SkDraw& d, const SkPath& origPath, |
| const SkPaint& paint, const SkMatrix* prePathMatrix, |
| bool pathIsMutable) { |