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