skia2/debugger/QT/SkRasterWidget.h
kkinnunen cfdc0e3fee debugger: SW rasterize the picture only when it changes
Rasterize the picture only when it changes, not every time
raster widget paints itself.

Removes include SkForceLinking.h while organizing the SkDebuggerGUI.cpp
includes.

This is part of the work trying to remove bugs that come from
SkDebugCanvas stateful draw. Part of the state comes from some
optimization that this tries to reproduce in a different way.

Review URL: https://codereview.chromium.org/839743003
2015-01-13 22:49:02 -08:00

40 lines
597 B
C++

/*
* SkRasterWidget.h
*
* Created on: Jul 28, 2012
* Author: chudy
*/
#ifndef SKRASTERWIDGET_H_
#define SKRASTERWIDGET_H_
#include "SkSurface.h"
class SkDebugger;
#include <QWidget>
class SkRasterWidget : public QWidget {
Q_OBJECT
public:
SkRasterWidget(SkDebugger* debugger);
void updateImage();
signals:
void drawComplete();
protected:
void paintEvent(QPaintEvent* event);
void resizeEvent(QResizeEvent* event);
private:
SkDebugger* fDebugger;
SkAutoTUnref<SkSurface> fSurface;
bool fNeedImageUpdate;
};
#endif /* SKRASTERWIDGET_H_ */