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
diff --git a/debugger/SkDrawCommand.cpp b/debugger/SkDrawCommand.cpp
index 5f33eb1..c017f44 100644
--- a/debugger/SkDrawCommand.cpp
+++ b/debugger/SkDrawCommand.cpp
@@ -127,7 +127,7 @@
}
ClipRRect::ClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) {
- this->fRRect = &rrect;
+ this->fRRect = rrect;
this->fOp = op;
this->fDoAA = doAA;
this->fDrawType = CLIP_RRECT;
@@ -138,7 +138,7 @@
}
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) {