qplatformgraphicsbuffer.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformgraphicsbuffer.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QPlatformGraphicsBuffer::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-
13QPlatformGraphicsBuffer::~QPlatformGraphicsBuffer()-
14{-
15}-
16bool QPlatformGraphicsBuffer::bindToTexture(const QRect &rect) const-
17{-
18 (void)rect;;-
19 return
never executed: return false;
false;
never executed: return false;
0
20}-
21bool QPlatformGraphicsBuffer::lock(AccessTypes access, const QRect &rect)-
22{-
23 bool locked = doLock(access, rect);-
24 if (locked
lockedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
25 m_lock_access |= access;
never executed: m_lock_access |= access;
0
26-
27 return
never executed: return locked;
locked;
never executed: return locked;
0
28}-
29-
30-
31-
32-
33-
34-
35-
36void QPlatformGraphicsBuffer::unlock()-
37{-
38 if (m_lock_access == None
m_lock_access == NoneDescription
TRUEnever evaluated
FALSEnever evaluated
)
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
45const uchar *QPlatformGraphicsBuffer::data() const-
46{ return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
}
0
47-
48-
49-
50-
51-
52-
53uchar *QPlatformGraphicsBuffer::data()-
54{-
55 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
56}-
57-
58-
59-
60-
61-
62-
63-
64int QPlatformGraphicsBuffer::byteCount() const-
65{-
66 ((!(isLocked() & SWReadAccess)) ? qt_assert("isLocked() & SWReadAccess",__FILE__,238) : qt_noop());-
67 return
never executed: return size().height() * bytesPerLine();
size().height() * bytesPerLine();
never executed: return size().height() * bytesPerLine();
0
68}-
69-
70-
71-
72-
73int QPlatformGraphicsBuffer::bytesPerLine() const-
74{-
75 return
never executed: return 0;
0;
never executed: return 0;
0
76}-
77QPlatformGraphicsBuffer::Origin QPlatformGraphicsBuffer::origin() const-
78{-
79 return
never executed: return OriginTopLeft;
OriginTopLeft;
never executed: return OriginTopLeft;
0
80}-
81-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9