Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformgraphicsbuffer.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | QPlatformGraphicsBuffer::QPlatformGraphicsBuffer(const QSize &size, const QPixelFormat &format) | - | ||||||
4 | : m_size(size) | - | ||||||
5 | , m_format(format) | - | ||||||
6 | { | - | ||||||
7 | } never executed: end of block | 0 | ||||||
8 | - | |||||||
9 | - | |||||||
10 | - | |||||||
11 | - | |||||||
12 | - | |||||||
13 | QPlatformGraphicsBuffer::~QPlatformGraphicsBuffer() | - | ||||||
14 | { | - | ||||||
15 | } | - | ||||||
16 | bool QPlatformGraphicsBuffer::bindToTexture(const QRect &rect) const | - | ||||||
17 | { | - | ||||||
18 | (void)rect;; | - | ||||||
19 | return never executed: false;return false; never executed: return false; | 0 | ||||||
20 | } | - | ||||||
21 | bool QPlatformGraphicsBuffer::lock(AccessTypes access, const QRect &rect) | - | ||||||
22 | { | - | ||||||
23 | bool locked = doLock(access, rect); | - | ||||||
24 | if (locked
| 0 | ||||||
25 | m_lock_access |= access; never executed: m_lock_access |= access; | 0 | ||||||
26 | - | |||||||
27 | return never executed: locked;return locked; never executed: return locked; | 0 | ||||||
28 | } | - | ||||||
29 | - | |||||||
30 | - | |||||||
31 | - | |||||||
32 | - | |||||||
33 | - | |||||||
34 | - | |||||||
35 | - | |||||||
36 | void QPlatformGraphicsBuffer::unlock() | - | ||||||
37 | { | - | ||||||
38 | if (m_lock_access == None
| 0 | ||||||
39 | return; never executed: return; | 0 | ||||||
40 | AccessTypes previous = m_lock_access; | - | ||||||
41 | doUnlock(); | - | ||||||
42 | m_lock_access = None; | - | ||||||
43 | unlocked(previous); | - | ||||||
44 | } never executed: end of block | 0 | ||||||
45 | const uchar *QPlatformGraphicsBuffer::data() const | - | ||||||
46 | { return never executed: nullptr;return nullptr; never executed: }return nullptr; | 0 | ||||||
47 | - | |||||||
48 | - | |||||||
49 | - | |||||||
50 | - | |||||||
51 | - | |||||||
52 | - | |||||||
53 | uchar *QPlatformGraphicsBuffer::data() | - | ||||||
54 | { | - | ||||||
55 | return never executed: nullptr;return nullptr; never executed: return nullptr; | 0 | ||||||
56 | } | - | ||||||
57 | - | |||||||
58 | - | |||||||
59 | - | |||||||
60 | - | |||||||
61 | - | |||||||
62 | - | |||||||
63 | - | |||||||
64 | int QPlatformGraphicsBuffer::byteCount() const | - | ||||||
65 | { | - | ||||||
66 | ((!(isLocked() & SWReadAccess)) ? qt_assert("isLocked() & SWReadAccess",__FILE__,238) : qt_noop()); | - | ||||||
67 | return never executed: size().height() * bytesPerLine();return size().height() * bytesPerLine(); never executed: return size().height() * bytesPerLine(); | 0 | ||||||
68 | } | - | ||||||
69 | - | |||||||
70 | - | |||||||
71 | - | |||||||
72 | - | |||||||
73 | int QPlatformGraphicsBuffer::bytesPerLine() const | - | ||||||
74 | { | - | ||||||
75 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
76 | } | - | ||||||
77 | QPlatformGraphicsBuffer::Origin QPlatformGraphicsBuffer::origin() const | - | ||||||
78 | { | - | ||||||
79 | return never executed: OriginTopLeft;return OriginTopLeft; never executed: return OriginTopLeft; | 0 | ||||||
80 | } | - | ||||||
81 | - | |||||||
Switch to Source code | Preprocessed file |