}
bool SkDebugCanvas::clipPath(const SkPath& path, SkRegion::Op op, bool doAA) {
- addDrawCommand(new ClipPath(path, op, doAA, createBitmap(path)));
+ SkBitmap bitmap = createBitmap(path);
+ addDrawCommand(new ClipPath(path, op, doAA, bitmap));
return true;
}
}
void SkDebugCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
- addDrawCommand(new DrawPath(path, paint, createBitmap(path)));
+ SkBitmap bitmap = createBitmap(path);
+ addDrawCommand(new DrawPath(path, paint, bitmap));
}
void SkDebugCanvas::drawPicture(SkPicture& picture) {
public:
DrawPath(const SkPath& path, const SkPaint& paint, SkBitmap& bitmap);
virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
- virtual const SkBitmap* DrawPath::getBitmap() const SK_OVERRIDE;
+ virtual const SkBitmap* getBitmap() const SK_OVERRIDE;
private:
const SkPath* fPath;