blob: ae35fdca19748c0566ced1c4d79e863bc3140b5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* 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);
void setDrawCommandIndex(int index);
protected:
void paintEvent(QPaintEvent* event);
void resizeEvent(QResizeEvent* event);
private:
void updateImage();
SkDebugger* fDebugger;
sk_sp<SkSurface> fSurface;
int fCommandIndex;
};
#endif /* SKDRAWCOMMANDGEOMETRYWIDGET_H_ */
|