| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef SKDRAWCOMMANDGEOMETRYWIDGET_H_ | 9 #ifndef SKDRAWCOMMANDGEOMETRYWIDGET_H_ |
| 10 #define SKDRAWCOMMANDGEOMETRYWIDGET_H_ | 10 #define SKDRAWCOMMANDGEOMETRYWIDGET_H_ |
| 11 | 11 |
| 12 #include <QFrame> | 12 #include <QFrame> |
| 13 | 13 |
| 14 #include "SkSurface.h" | 14 #include "SkSurface.h" |
| 15 class SkDebugger; | 15 class SkDebugger; |
| 16 | 16 |
| 17 class SkDrawCommandGeometryWidget : public QFrame { | 17 class SkDrawCommandGeometryWidget : public QFrame { |
| 18 Q_OBJECT | 18 Q_OBJECT |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 SkDrawCommandGeometryWidget(SkDebugger* debugger); | 21 SkDrawCommandGeometryWidget(SkDebugger* debugger); |
| 22 | 22 void setDrawCommandIndex(int index); |
| 23 public slots: | |
| 24 void updateImage(); | |
| 25 | 23 |
| 26 protected: | 24 protected: |
| 27 void paintEvent(QPaintEvent* event); | 25 void paintEvent(QPaintEvent* event); |
| 28 void resizeEvent(QResizeEvent* event); | 26 void resizeEvent(QResizeEvent* event); |
| 29 | 27 |
| 30 private: | 28 private: |
| 29 void updateImage(); |
| 30 |
| 31 SkDebugger* fDebugger; | 31 SkDebugger* fDebugger; |
| 32 SkAutoTUnref<SkSurface> fSurface; | 32 SkAutoTUnref<SkSurface> fSurface; |
| 33 int fCommandIndex; |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 #endif /* SKDRAWCOMMANDGEOMETRYWIDGET_H_ */ | 36 #endif /* SKDRAWCOMMANDGEOMETRYWIDGET_H_ */ |
| OLD | NEW |