Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_buffer_gbm.h
- This file was copied to plugins/platforms/drm/remoteaccess_manager.h.
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 41 | bool needsModeChange(DrmBuffer *b) const override { | |||
---|---|---|---|---|---|
44 | } else { | 44 | } else { | ||
45 | return true; | 45 | return true; | ||
46 | } | 46 | } | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | bool hasBo() const { | 49 | bool hasBo() const { | ||
50 | return m_bo != nullptr; | 50 | return m_bo != nullptr; | ||
51 | } | 51 | } | ||
52 | | ||||
53 | gbm_bo* getBo() const { | ||||
54 | return m_bo; | ||||
55 | } | ||||
56 | | ||||
52 | void releaseGbm() override; | 57 | void releaseGbm() override; | ||
53 | 58 | | |||
54 | private: | 59 | private: | ||
55 | std::shared_ptr<GbmSurface> m_surface; | 60 | std::shared_ptr<GbmSurface> m_surface; | ||
56 | gbm_bo *m_bo = nullptr; | 61 | gbm_bo *m_bo = nullptr; | ||
57 | }; | 62 | }; | ||
58 | 63 | | |||
59 | } | 64 | } | ||
60 | 65 | | |||
61 | #endif | 66 | #endif | ||
62 | 67 | |