Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/context2d/qquickcontext2dtile_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | static_assert(bool(1 == 1), "Required feature " "quick_canvas" " for file " __FILE__ " not available."); | - |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | class QQuickContext2DTexture; | - |
9 | class QQuickContext2DCommandBuffer; | - |
10 | - | |
11 | class QQuickContext2DTile | - |
12 | { | - |
13 | public: | - |
14 | QQuickContext2DTile(); | - |
15 | virtual ~QQuickContext2DTile(); | - |
16 | - | |
17 | bool dirty() const {return never executed: m_dirty;return m_dirty; never executed: }return m_dirty; | 0 |
18 | void markDirty(bool dirty) {m_dirty = dirty;} never executed: end of block | 0 |
19 | - | |
20 | QRect rect() const {return never executed: m_rect;return m_rect; never executed: }return m_rect; | 0 |
21 | - | |
22 | virtual void setRect(const QRect& r) = 0; | - |
23 | virtual QPainter* createPainter(bool smooth, bool antialiasing); | - |
24 | virtual void drawFinished() {} | - |
25 | - | |
26 | protected: | - |
27 | virtual void aboutToDraw() {} | - |
28 | uint m_dirty : 1; | - |
29 | QRect m_rect; | - |
30 | QPaintDevice* m_device; | - |
31 | QPainter m_painter; | - |
32 | }; | - |
33 | - | |
34 | - | |
35 | class QQuickContext2DFBOTile : public QQuickContext2DTile | - |
36 | { | - |
37 | public: | - |
38 | QQuickContext2DFBOTile(); | - |
39 | ~QQuickContext2DFBOTile(); | - |
40 | void setRect(const QRect& r) override; | - |
41 | QOpenGLFramebufferObject* fbo() const {return never executed: m_fbo;return m_fbo; never executed: }return m_fbo; | 0 |
42 | void drawFinished() override; | - |
43 | - | |
44 | protected: | - |
45 | void aboutToDraw() override; | - |
46 | private: | - |
47 | - | |
48 | - | |
49 | QOpenGLFramebufferObject *m_fbo; | - |
50 | }; | - |
51 | - | |
52 | class QQuickContext2DImageTile : public QQuickContext2DTile | - |
53 | { | - |
54 | public: | - |
55 | QQuickContext2DImageTile(); | - |
56 | ~QQuickContext2DImageTile(); | - |
57 | void setRect(const QRect& r) override; | - |
58 | const QImage& image() const {return never executed: m_image;return m_image; never executed: }return m_image; | 0 |
59 | private: | - |
60 | QImage m_image; | - |
61 | }; | - |
62 | - | |
Switch to Source code | Preprocessed file |