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

Unified Diff: debugger/QT/SkRasterWidget.h

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 | « debugger/QT/SkGLWidget.cpp ('k') | debugger/QT/SkRasterWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ */
« no previous file with comments | « debugger/QT/SkGLWidget.cpp ('k') | debugger/QT/SkRasterWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698