Index: debugger/QT/SkRasterWidget.h |
diff --git a/debugger/QT/SkRasterWidget.h b/debugger/QT/SkRasterWidget.h |
index afad609c321615f3c1b68e6fc9fda72f5c7f377c..09b529c049c18012ff20f592310aafe6193ba496 100644 |
--- a/debugger/QT/SkRasterWidget.h |
+++ b/debugger/QT/SkRasterWidget.h |
@@ -9,15 +9,9 @@ |
#ifndef SKRASTERWIDGET_H_ |
#define SKRASTERWIDGET_H_ |
-#if SK_SUPPORT_GPU |
-#include "SkGpuDevice.h" |
-#endif |
+#include "SkSurface.h" |
+class SkDebugger; |
-#include "SkBitmapDevice.h" |
-#include "SkDebugger.h" |
- |
-#include <QApplication> |
-#include <QtGui> |
#include <QWidget> |
class SkRasterWidget : public QWidget { |
@@ -26,11 +20,7 @@ class SkRasterWidget : public QWidget { |
public: |
SkRasterWidget(SkDebugger* debugger); |
- ~SkRasterWidget(); |
- |
- void draw() { |
- this->update(); |
- } |
+ void updateImage(); |
signals: |
void drawComplete(); |
@@ -41,10 +31,9 @@ protected: |
void resizeEvent(QResizeEvent* event); |
private: |
- SkBitmap fBitmap; |
SkDebugger* fDebugger; |
- SkCanvas* fCanvas; |
- SkBaseDevice* fDevice; |
+ SkAutoTUnref<SkSurface> fSurface; |
+ bool fNeedImageUpdate; |
}; |
#endif /* SKRASTERWIDGET_H_ */ |