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

Unified Diff: debugger/QT/SkCanvasWidget.cpp

Issue 839743003: debugger: SW rasterize the picture only when it changes (Closed) Base URL: https://skia.googlesource.com/skia.git@debugcanvas-stateless-draw-01-no-resize
Patch Set: address review comment Created 5 years, 11 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 | debugger/QT/SkDebuggerGUI.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkCanvasWidget.cpp
diff --git a/debugger/QT/SkCanvasWidget.cpp b/debugger/QT/SkCanvasWidget.cpp
index 73de8c21ca72d5a69272dfaa27f0410ba9ccc373..9d691cd35acba891e921072fb2c7d21f472d129b 100644
--- a/debugger/QT/SkCanvasWidget.cpp
+++ b/debugger/QT/SkCanvasWidget.cpp
@@ -8,6 +8,7 @@
#include "SkCanvasWidget.h"
+#include <QtGui>
SkCanvasWidget::SkCanvasWidget(QWidget* parent,
SkDebugger* debugger) : QWidget(parent)
@@ -40,17 +41,17 @@ SkCanvasWidget::SkCanvasWidget(QWidget* parent,
#if SK_SUPPORT_GPU
setWidgetVisibility(kGPU_WidgetType, true);
#endif
- connect(&fRasterWidget, SIGNAL(drawComplete()),
- this->parentWidget(), SLOT(drawComplete()));
+ connect(&fRasterWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(drawComplete()));
+ connect(&fGLWidget, SIGNAL(drawComplete()), this->parentWidget(), SLOT(drawComplete()));
}
SkCanvasWidget::~SkCanvasWidget() {}
void SkCanvasWidget::drawTo(int index) {
fDebugger->setIndex(index);
- fRasterWidget.draw();
+ fRasterWidget.updateImage();
#if SK_SUPPORT_GPU
- fGLWidget.draw();
+ fGLWidget.updateImage();
#endif
emit commandChanged(fDebugger->index());
}
« no previous file with comments | « no previous file | debugger/QT/SkDebuggerGUI.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698