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.cpp b/debugger/QT/SkRasterWidget.cpp
index 33728d0..ecb949c 100644
--- a/debugger/QT/SkRasterWidget.cpp
+++ b/debugger/QT/SkRasterWidget.cpp
@@ -40,10 +40,6 @@
void SkRasterWidget::paintEvent(QPaintEvent* event) {
if (fDebugCanvas) {
fDebugCanvas->drawTo(fCanvas, fIndex);
- // TODO(chudy): Refactor into SkDebugCanvas.
- fMatrix = fCanvas->getTotalMatrix();
- fClip = fCanvas->getTotalClip().getBounds();
-
QPainter painter(this);
QStyleOption opt;
opt.init(this);
@@ -56,5 +52,6 @@
painter.drawImage(origin, image);
painter.end();
+ emit drawComplete();
}
}