Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1994)

Unified Diff: debugger/SkDrawCommand.h

Issue 12918029: New filter targeted at desk_googlespreadsheet overdraw issues (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Handle some corner cases Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/filtermain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/SkDrawCommand.h
===================================================================
--- debugger/SkDrawCommand.h (revision 8402)
+++ debugger/SkDrawCommand.h (working copy)
@@ -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;
« no previous file with comments | « no previous file | tools/filtermain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698