Fix debugger handling of clip rrects

https://codereview.appspot.com/7135053/



git-svn-id: http://skia.googlecode.com/svn/trunk@7252 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-01-17 16:07:04 +00:00
parent 2b16570bda
commit 2da95b2ac5
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ void ClipRect::execute(SkCanvas* canvas) {
} }
ClipRRect::ClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) { ClipRRect::ClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) {
this->fRRect = &rrect; this->fRRect = rrect;
this->fOp = op; this->fOp = op;
this->fDoAA = doAA; this->fDoAA = doAA;
this->fDrawType = CLIP_RRECT; this->fDrawType = CLIP_RRECT;
@ -138,7 +138,7 @@ ClipRRect::ClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) {
} }
void ClipRRect::execute(SkCanvas* canvas) { void ClipRRect::execute(SkCanvas* canvas) {
canvas->clipRRect(*this->fRRect, this->fOp, this->fDoAA); canvas->clipRRect(this->fRRect, this->fOp, this->fDoAA);
} }
Concat::Concat(const SkMatrix& matrix) { Concat::Concat(const SkMatrix& matrix) {

View File

@ -103,7 +103,7 @@ public:
ClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA); ClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA);
virtual void execute(SkCanvas* canvas) SK_OVERRIDE; virtual void execute(SkCanvas* canvas) SK_OVERRIDE;
private: private:
const SkRRect* fRRect; SkRRect fRRect;
SkRegion::Op fOp; SkRegion::Op fOp;
bool fDoAA; bool fDoAA;
}; };