| Index: src/utils/debugger/SkDrawCommand.h
|
| diff --git a/src/utils/debugger/SkDrawCommand.h b/src/utils/debugger/SkDrawCommand.h
|
| index 99e3eea457530f93112aa615b9a66ba1472a8741..7ff5a86bd33bc061fa31c9be325224d88bc13cfe 100644
|
| --- a/src/utils/debugger/SkDrawCommand.h
|
| +++ b/src/utils/debugger/SkDrawCommand.h
|
| @@ -26,6 +26,8 @@ public:
|
| kDrawBitmapRect_OpType,
|
| kDrawClear_OpType,
|
| kDrawDRRect_OpType,
|
| + kDrawImage_OpType,
|
| + kDrawImageRect_OpType,
|
| kDrawOval_OpType,
|
| kDrawPaint_OpType,
|
| kDrawPatch_OpType,
|
| @@ -264,6 +266,36 @@ private:
|
| typedef SkDrawCommand INHERITED;
|
| };
|
|
|
| +class SkDrawImageCommand : public SkDrawCommand {
|
| +public:
|
| + SkDrawImageCommand(const SkImage* image, SkScalar left, SkScalar top, const SkPaint* paint);
|
| + void execute(SkCanvas* canvas) const override;
|
| + bool render(SkCanvas* canvas) const override;
|
| +private:
|
| + SkAutoTUnref<const SkImage> fImage;
|
| + SkScalar fLeft;
|
| + SkScalar fTop;
|
| + SkTLazy<SkPaint> fPaint;
|
| +
|
| + typedef SkDrawCommand INHERITED;
|
| +};
|
| +
|
| +class SkDrawImageRectCommand : public SkDrawCommand {
|
| +public:
|
| + SkDrawImageRectCommand(const SkImage* image, const SkRect* src, const SkRect& dst,
|
| + const SkPaint* paint, SkCanvas::SrcRectConstraint constraint);
|
| + void execute(SkCanvas* canvas) const override;
|
| + bool render(SkCanvas* canvas) const override;
|
| +private:
|
| + SkAutoTUnref<const SkImage> fImage;
|
| + SkTLazy<SkRect> fSrc;
|
| + SkRect fDst;
|
| + SkTLazy<SkPaint> fPaint;
|
| + SkCanvas::SrcRectConstraint fConstraint;
|
| +
|
| + typedef SkDrawCommand INHERITED;
|
| +};
|
| +
|
| class SkDrawOvalCommand : public SkDrawCommand {
|
| public:
|
| SkDrawOvalCommand(const SkRect& oval, const SkPaint& paint);
|
|
|