Index: src/core/SkPictureRecord.cpp |
=================================================================== |
--- src/core/SkPictureRecord.cpp (revision 14349) |
+++ src/core/SkPictureRecord.cpp (working copy) |
@@ -1065,6 +1065,15 @@ |
void SkPictureRecord::drawPath(const SkPath& path, const SkPaint& paint) { |
+ if (paint.isAntiAlias() && !path.isConvex()) { |
+ fPicture->incAAConcavePaths(); |
+ |
+ if (SkPaint::kStroke_Style == paint.getStyle() && |
+ 0 == paint.getStrokeWidth()) { |
+ fPicture->incAAHairlineConcavePaths(); |
+ } |
+ } |
+ |
#ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
fMCMgr.call(SkMatrixClipStateMgr::kOther_CallType); |
#endif |
@@ -1578,6 +1587,10 @@ |
} |
const SkFlatData* SkPictureRecord::addPaintPtr(const SkPaint* paint) { |
+ if (NULL != paint && NULL != paint->getPathEffect()) { |
+ fPicture->incPaintWithPathEffectUses(); |
+ } |
+ |
const SkFlatData* data = paint ? getFlatPaintData(*paint) : NULL; |
this->addFlatPaint(data); |
return data; |