OLD | NEW |
| 1 |
1 /* | 2 /* |
2 * SkRasterWidget.h | 3 * Copyright 2016 Google Inc. |
3 * | 4 * |
4 * Created on: Jul 28, 2012 | 5 * Use of this source code is governed by a BSD-style license that can be |
5 * Author: chudy | 6 * found in the LICENSE file. |
6 */ | 7 */ |
7 | 8 |
8 | |
9 #ifndef SKRASTERWIDGET_H_ | 9 #ifndef SKRASTERWIDGET_H_ |
10 #define SKRASTERWIDGET_H_ | 10 #define SKRASTERWIDGET_H_ |
11 | 11 |
12 #include "SkSurface.h" | 12 #include "SkSurface.h" |
13 class SkDebugger; | 13 class SkDebugger; |
14 | 14 |
15 #include <QWidget> | 15 #include <QWidget> |
16 | 16 |
17 class SkRasterWidget : public QWidget { | 17 class SkRasterWidget : public QWidget { |
18 Q_OBJECT | 18 Q_OBJECT |
19 | 19 |
20 public: | 20 public: |
21 SkRasterWidget(SkDebugger* debugger); | 21 SkRasterWidget(SkDebugger* debugger); |
22 | 22 |
23 void updateImage(); | 23 void updateImage(); |
24 | 24 |
25 signals: | 25 Q_SIGNALS: |
26 void drawComplete(); | 26 void drawComplete(); |
27 | 27 |
28 protected: | 28 protected: |
29 void paintEvent(QPaintEvent* event); | 29 void paintEvent(QPaintEvent* event); |
30 | 30 |
31 void resizeEvent(QResizeEvent* event); | 31 void resizeEvent(QResizeEvent* event); |
32 | 32 |
33 private: | 33 private: |
34 SkDebugger* fDebugger; | 34 SkDebugger* fDebugger; |
35 SkAutoTUnref<SkSurface> fSurface; | 35 SkAutoTUnref<SkSurface> fSurface; |
36 bool fNeedImageUpdate; | 36 bool fNeedImageUpdate; |
37 }; | 37 }; |
38 | 38 |
39 #endif /* SKRASTERWIDGET_H_ */ | 39 #endif /* SKRASTERWIDGET_H_ */ |
OLD | NEW |