diff options
Diffstat (limited to 'debugger/QT/SkDrawCommandGeometryWidget.h')
-rw-r--r-- | debugger/QT/SkDrawCommandGeometryWidget.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debugger/QT/SkDrawCommandGeometryWidget.h b/debugger/QT/SkDrawCommandGeometryWidget.h new file mode 100644 index 0000000000..aa5d10a01a --- /dev/null +++ b/debugger/QT/SkDrawCommandGeometryWidget.h @@ -0,0 +1,35 @@ +/* + * Copyright 2014 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + + +#ifndef SKDRAWCOMMANDGEOMETRYWIDGET_H_ +#define SKDRAWCOMMANDGEOMETRYWIDGET_H_ + +#include <QFrame> + +#include "SkSurface.h" +class SkDebugger; + +class SkDrawCommandGeometryWidget : public QFrame { + Q_OBJECT + +public: + SkDrawCommandGeometryWidget(SkDebugger* debugger); + +public slots: + void updateImage(); + +protected: + void paintEvent(QPaintEvent* event); + void resizeEvent(QResizeEvent* event); + +private: + SkDebugger* fDebugger; + SkAutoTUnref<SkSurface> fSurface; +}; + +#endif /* SKDRAWCOMMANDGEOMETRYWIDGET_H_ */ |