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

Unified Diff: debugger/QT/SkImageWidget.h

Issue 15907023: Make SkDrawCommands lighter weight (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review comments Created 7 years, 6 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/SkImageWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkImageWidget.h
===================================================================
--- debugger/QT/SkImageWidget.h (revision 9448)
+++ debugger/QT/SkImageWidget.h (working copy)
@@ -11,6 +11,7 @@
#include <QWidget>
+#include "SkSurface.h"
class SkDebugger;
class SkImageWidget : public QWidget {
@@ -18,6 +19,10 @@
public:
SkImageWidget(SkDebugger* debugger);
+
+ virtual ~SkImageWidget() {
+ fSurface->unref();
+ }
void draw() {
this->update();
@@ -33,7 +38,9 @@
void paintEvent(QPaintEvent* event);
private:
- SkDebugger *fDebugger;
+ SkDebugger* fDebugger;
+ char fPixels[kImageWidgetHeight * 4 * kImageWidgetWidth];
+ SkSurface* fSurface;
};
#endif /* SKIMAGEWIDGET_H_ */
« no previous file with comments | « no previous file | debugger/QT/SkImageWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698