Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
50 | bool usesOverlayWindow() const override; | 50 | bool usesOverlayWindow() const override; | ||
51 | bool perScreenRendering() const override; | 51 | bool perScreenRendering() const override; | ||
52 | QRegion prepareRenderingForScreen(int screenId) override; | 52 | QRegion prepareRenderingForScreen(int screenId) override; | ||
53 | void init() override; | 53 | void init() override; | ||
54 | 54 | | |||
55 | protected: | 55 | protected: | ||
56 | void present() override; | 56 | void present() override; | ||
57 | void cleanupSurfaces() override; | 57 | void cleanupSurfaces() override; | ||
58 | void aboutToStartPainting(const QRegion &damage) override; | ||||
58 | 59 | | |||
59 | private: | 60 | private: | ||
60 | bool initializeEgl(); | 61 | bool initializeEgl(); | ||
61 | bool initBufferConfigs(); | 62 | bool initBufferConfigs(); | ||
62 | bool initRenderingContext(); | 63 | bool initRenderingContext(); | ||
63 | void initRemotePresent(); | 64 | void initRemotePresent(); | ||
64 | struct Output { | 65 | struct Output { | ||
66 | QRegion pendingDamagedRegions() const; | ||||
67 | | ||||
65 | DrmOutput *output = nullptr; | 68 | DrmOutput *output = nullptr; | ||
66 | DrmBuffer *buffer = nullptr; | 69 | DrmBuffer *buffer = nullptr; | ||
67 | std::shared_ptr<GbmSurface> gbmSurface; | 70 | std::shared_ptr<GbmSurface> gbmSurface; | ||
68 | EGLSurface eglSurface = EGL_NO_SURFACE; | 71 | EGLSurface eglSurface = EGL_NO_SURFACE; | ||
69 | int bufferAge = 0; | 72 | int bufferAge = 0; | ||
70 | /** | 73 | /** | ||
71 | * @brief The damage history for the past 10 frames. | 74 | * @brief The damage history for the past 10 frames. | ||
72 | */ | 75 | */ | ||
73 | QList<QRegion> damageHistory; | 76 | QList<QRegion> damageHistory; | ||
74 | 77 | | |||
75 | struct { | 78 | struct { | ||
zzag: The name of this method is confusing. What age? | |||||
76 | GLuint framebuffer = 0; | 79 | GLuint framebuffer = 0; | ||
77 | GLuint texture = 0; | 80 | GLuint texture = 0; | ||
78 | std::shared_ptr<GLVertexBuffer> vbo; | 81 | std::shared_ptr<GLVertexBuffer> vbo; | ||
79 | } render; | 82 | } render; | ||
80 | }; | 83 | }; | ||
81 | 84 | | |||
82 | void createOutput(DrmOutput *drmOutput); | 85 | void createOutput(DrmOutput *drmOutput); | ||
83 | bool resetOutput(Output &output, DrmOutput *drmOutput); | 86 | bool resetOutput(Output &output, DrmOutput *drmOutput); | ||
Show All 40 Lines |
The name of this method is confusing. What age?