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 { | ||
65 | DrmOutput *output = nullptr; | 66 | DrmOutput *output = nullptr; | ||
66 | DrmBuffer *buffer = nullptr; | 67 | DrmBuffer *buffer = nullptr; | ||
67 | std::shared_ptr<GbmSurface> gbmSurface; | 68 | std::shared_ptr<GbmSurface> gbmSurface; | ||
68 | EGLSurface eglSurface = EGL_NO_SURFACE; | 69 | EGLSurface eglSurface = EGL_NO_SURFACE; | ||
69 | int bufferAge = 0; | 70 | int bufferAge = 0; | ||
70 | /** | 71 | /** | ||
71 | * @brief The damage history for the past 10 frames. | 72 | * @brief The damage history for the past 10 frames. | ||
72 | */ | 73 | */ | ||
73 | QList<QRegion> damageHistory; | 74 | QList<QRegion> damageHistory; | ||
74 | 75 | | |||
75 | struct { | 76 | struct { | ||
zzag: The name of this method is confusing. What age? | |||||
76 | GLuint framebuffer = 0; | 77 | GLuint framebuffer = 0; | ||
77 | GLuint texture = 0; | 78 | GLuint texture = 0; | ||
78 | std::shared_ptr<GLVertexBuffer> vbo; | 79 | std::shared_ptr<GLVertexBuffer> vbo; | ||
79 | } render; | 80 | } render; | ||
80 | }; | 81 | }; | ||
81 | 82 | | |||
82 | void createOutput(DrmOutput *drmOutput); | 83 | void createOutput(DrmOutput *drmOutput); | ||
83 | bool resetOutput(Output &output, DrmOutput *drmOutput); | 84 | bool resetOutput(Output &output, DrmOutput *drmOutput); | ||
Show All 40 Lines |
The name of this method is confusing. What age?