2014-12-31 07:03:56 +00:00
|
|
|
/*
|
|
|
|
* 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);
|
2015-01-07 15:33:46 +00:00
|
|
|
void setDrawCommandIndex(int index);
|
2014-12-31 07:03:56 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent* event);
|
|
|
|
void resizeEvent(QResizeEvent* event);
|
|
|
|
|
|
|
|
private:
|
2015-01-07 15:33:46 +00:00
|
|
|
void updateImage();
|
|
|
|
|
2014-12-31 07:03:56 +00:00
|
|
|
SkDebugger* fDebugger;
|
2015-01-07 15:33:46 +00:00
|
|
|
SkAutoTUnref<SkSurface> fSurface;
|
|
|
|
int fCommandIndex;
|
2014-12-31 07:03:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SKDRAWCOMMANDGEOMETRYWIDGET_H_ */
|