Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgareaallocator_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QRect; | - |
5 | class QPoint; | - |
6 | struct QSGAreaAllocatorNode; | - |
7 | class __attribute__((visibility("default"))) QSGAreaAllocator | - |
8 | { | - |
9 | public: | - |
10 | QSGAreaAllocator(const QSize &size); | - |
11 | ~QSGAreaAllocator(); | - |
12 | - | |
13 | QRect allocate(const QSize &size); | - |
14 | bool deallocate(const QRect &rect); | - |
15 | bool isEmpty() const { return never executed: m_root == nullptr;return m_root == nullptr; never executed: }return m_root == nullptr; | 0 |
16 | QSize size() const { return never executed: m_size;return m_size; never executed: }return m_size; | 0 |
17 | private: | - |
18 | bool allocateInNode(const QSize &size, QPoint &result, const QRect ¤tRect, QSGAreaAllocatorNode *node); | - |
19 | bool deallocateInNode(const QPoint &pos, QSGAreaAllocatorNode *node); | - |
20 | void mergeNodeWithNeighbors(QSGAreaAllocatorNode *node); | - |
21 | - | |
22 | QSGAreaAllocatorNode *m_root; | - |
23 | QSize m_size; | - |
24 | }; | - |
25 | - | |
26 | - | |
Switch to Source code | Preprocessed file |