diff options
Diffstat (limited to 'debugger/SkDrawCommand.h')
-rw-r--r-- | debugger/SkDrawCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debugger/SkDrawCommand.h b/debugger/SkDrawCommand.h index 65e1f0df01..02a4afed5d 100644 --- a/debugger/SkDrawCommand.h +++ b/debugger/SkDrawCommand.h @@ -200,6 +200,8 @@ public: virtual void execute(SkCanvas* canvas) SK_OVERRIDE; virtual const SkBitmap* getBitmap() const SK_OVERRIDE; + const SkBitmap& bitmap() const { return fBitmap; } + // The non-const 'paint' method allows modification of this object's // SkPaint. For this reason the ctor and setPaint method make a local copy. // The 'fPaintPtr' member acts a signal that the local SkPaint is valid @@ -212,6 +214,9 @@ public: const SkRect* srcRect() const { return fSrc.isEmpty() ? NULL : &fSrc; } const SkRect& dstRect() const { return fDst; } + void setSrcRect(const SkRect& src) { fSrc = src; } + void setDstRect(const SkRect& dst) { fDst = dst; } + private: SkBitmap fBitmap; SkRect fSrc; |