Moved the ownership of the current clip and current matrix into the debug canvas as part of the upcoming general refactor to everything living in debug canvas.
Review URL: https://codereview.appspot.com/6447077
git-svn-id: http://skia.googlecode.com/svn/trunk@4950 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/QT/SkRasterWidget.h b/debugger/QT/SkRasterWidget.h
index 3fca4f3..b0ded02 100644
--- a/debugger/QT/SkRasterWidget.h
+++ b/debugger/QT/SkRasterWidget.h
@@ -18,6 +18,7 @@
#include <QWidget>
class SkRasterWidget : public QWidget {
+ Q_OBJECT
public:
SkRasterWidget();
@@ -43,14 +44,6 @@
return fBitmap.width();
}
- const SkMatrix& getCurrentMatrix() {
- return fMatrix;
- }
-
- const SkIRect& getCurrentClip() {
- return fClip;
- }
-
void setTranslate(SkIPoint transform) {
fTransform = transform;
}
@@ -59,6 +52,9 @@
fScaleFactor = scale;
}
+signals:
+ void drawComplete();
+
protected:
void paintEvent(QPaintEvent* event);
@@ -70,9 +66,6 @@
SkCanvas* fCanvas;
SkDevice* fDevice;
- SkMatrix fMatrix;
- SkIRect fClip;
-
int fIndex;
SkIPoint fTransform;
float fScaleFactor;