Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_buffer.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 52 | quint32 stride() const { | |||
---|---|---|---|---|---|
53 | return m_stride; | 53 | return m_stride; | ||
54 | } | 54 | } | ||
55 | gbm_bo *gbm() const { | 55 | gbm_bo *gbm() const { | ||
56 | return m_bo; | 56 | return m_bo; | ||
57 | } | 57 | } | ||
58 | bool isGbm() const { | 58 | bool isGbm() const { | ||
59 | return m_bo != nullptr; | 59 | return m_bo != nullptr; | ||
60 | } | 60 | } | ||
61 | bool deleteAfterPageFlip() const { | ||||
62 | return m_deleteAfterPageFlip; | ||||
63 | } | ||||
64 | | ||||
61 | void releaseGbm(); | 65 | void releaseGbm(); | ||
62 | 66 | | |||
63 | private: | 67 | private: | ||
64 | friend class DrmBackend; | 68 | friend class DrmBackend; | ||
65 | DrmBuffer(DrmBackend *backend, const QSize &size); | 69 | DrmBuffer(DrmBackend *backend, const QSize &size); | ||
66 | DrmBuffer(DrmBackend *backend, gbm_surface *surface); | 70 | DrmBuffer(DrmBackend *backend, gbm_surface *surface); | ||
67 | DrmBackend *m_backend; | 71 | DrmBackend *m_backend; | ||
68 | gbm_surface *m_surface = nullptr; | 72 | gbm_surface *m_surface = nullptr; | ||
69 | gbm_bo *m_bo = nullptr; | 73 | gbm_bo *m_bo = nullptr; | ||
70 | QSize m_size; | 74 | QSize m_size; | ||
71 | quint32 m_handle = 0; | 75 | quint32 m_handle = 0; | ||
72 | quint32 m_bufferId = 0; | 76 | quint32 m_bufferId = 0; | ||
73 | quint32 m_stride = 0; | 77 | quint32 m_stride = 0; | ||
74 | quint64 m_bufferSize = 0; | 78 | quint64 m_bufferSize = 0; | ||
75 | void *m_memory = nullptr; | 79 | void *m_memory = nullptr; | ||
76 | QImage *m_image = nullptr; | 80 | QImage *m_image = nullptr; | ||
81 | bool m_deleteAfterPageFlip = false; | ||||
77 | }; | 82 | }; | ||
78 | 83 | | |||
79 | } | 84 | } | ||
80 | 85 | | |||
81 | #endif | 86 | #endif | ||
82 | 87 | |