New filter targeted at desk_googlespreadsheet overdraw issues
https://codereview.chromium.org/12918029/
git-svn-id: http://skia.googlecode.com/svn/trunk@8424 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/SkDrawCommand.h b/debugger/SkDrawCommand.h
index 65e1f0d..02a4afe 100644
--- a/debugger/SkDrawCommand.h
+++ b/debugger/SkDrawCommand.h
@@ -200,6 +200,8 @@
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 @@
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;