diff options
author | 2011-01-25 22:06:29 +0000 | |
---|---|---|
committer | 2011-01-25 22:06:29 +0000 | |
commit | 02cc5aa736086320649d8a932515691ae18a0dd5 (patch) | |
tree | 21d1377002d1bdc84fe225c060202ea18554e47b /src/pdf | |
parent | 2a22e10ab2946c5590cd2a258427ce3ccfca9bfa (diff) |
Update SkPDFDevice::drawPath signature to match SkDevice.
Review URL: http://codereview.appspot.com/4068044
git-svn-id: http://skia.googlecode.com/svn/trunk@729 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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); |