aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/pdf/SkPDFDevice.h3
-rw-r--r--src/pdf/SkPDFDevice.cpp9
2 files changed, 8 insertions, 4 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h
index 64e0407855..7395373c33 100644
--- a/include/pdf/SkPDFDevice.h
+++ b/include/pdf/SkPDFDevice.h
@@ -81,7 +81,8 @@ public:
const SkPaint& paint);
virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint);
virtual void drawPath(const SkDraw&, const SkPath& path,
- const SkPaint& paint);
+ const SkPaint& paint, const SkMatrix* prePathMatrix,
+ bool pathIsMutable);
virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
const SkIRect* srcRectOrNull,
const SkMatrix& matrix, const SkPaint& paint);
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index fd458e0ea9..4cbdf9c41d 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -252,7 +252,7 @@ void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& r,
SkPaint noEffectPaint(paint);
SkSafeUnref(noEffectPaint.setPathEffect(NULL));
- drawPath(d, path, noEffectPaint);
+ drawPath(d, path, noEffectPaint, NULL, true);
return;
}
updateGSFromPaint(paint, false);
@@ -264,7 +264,10 @@ void SkPDFDevice::drawRect(const SkDraw& d, const SkRect& r,
}
void SkPDFDevice::drawPath(const SkDraw& d, const SkPath& path,
- const SkPaint& paint) {
+ const SkPaint& paint, const SkMatrix* prePathMatrix,
+ bool pathIsMutable) {
+ NOT_IMPLEMENTED("drawPath with prePathMatrix", (prePathMatrix != NULL));
+
if (paint.getPathEffect()) {
// Apply the path effect to path and draw it that way.
SkPath noEffectPath;
@@ -272,7 +275,7 @@ void SkPDFDevice::drawPath(const SkDraw& d, const SkPath& path,
SkPaint noEffectPaint(paint);
SkSafeUnref(noEffectPaint.setPathEffect(NULL));
- drawPath(d, noEffectPath, noEffectPaint);
+ drawPath(d, noEffectPath, noEffectPaint, NULL, true);
return;
}
updateGSFromPaint(paint, false);