Index: src/utils/debugger/SkDrawCommand.h |
=================================================================== |
--- src/utils/debugger/SkDrawCommand.h (revision 10709) |
+++ src/utils/debugger/SkDrawCommand.h (working copy) |
@@ -193,7 +193,8 @@ |
class SkDrawBitmapRectCommand : public SkDrawCommand { |
public: |
SkDrawBitmapRectCommand(const SkBitmap& bitmap, const SkRect* src, |
- const SkRect& dst, const SkPaint* paint); |
+ const SkRect& dst, const SkPaint* paint, |
+ SkCanvas::DrawBitmapRectFlags flags); |
virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
@@ -209,17 +210,21 @@ |
void setPaint(const SkPaint& paint) { fPaint = paint; fPaintPtr = &fPaint; } |
const SkRect* srcRect() const { return fSrc.isEmpty() ? NULL : &fSrc; } |
+ void setSrcRect(const SkRect& src) { fSrc = src; } |
+ |
const SkRect& dstRect() const { return fDst; } |
- |
- void setSrcRect(const SkRect& src) { fSrc = src; } |
void setDstRect(const SkRect& dst) { fDst = dst; } |
+ SkCanvas::DrawBitmapRectFlags flags() const { return fFlags; } |
+ void setFlags(SkCanvas::DrawBitmapRectFlags flags) { fFlags = flags; } |
+ |
private: |
- SkBitmap fBitmap; |
- SkRect fSrc; |
- SkRect fDst; |
- SkPaint fPaint; |
- SkPaint* fPaintPtr; |
+ SkBitmap fBitmap; |
+ SkRect fSrc; |
+ SkRect fDst; |
+ SkPaint fPaint; |
+ SkPaint* fPaintPtr; |
+ SkCanvas::DrawBitmapRectFlags fFlags; |
typedef SkDrawCommand INHERITED; |
}; |