Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/abstract_egl_backend.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 101 | protected: | |||
---|---|---|---|---|---|
106 | void setImage(const EGLImageKHR &img) { | 106 | void setImage(const EGLImageKHR &img) { | ||
107 | m_image = img; | 107 | m_image = img; | ||
108 | } | 108 | } | ||
109 | SceneOpenGLTexture *texture() const { | 109 | SceneOpenGLTexture *texture() const { | ||
110 | return q; | 110 | return q; | ||
111 | } | 111 | } | ||
112 | 112 | | |||
113 | private: | 113 | private: | ||
114 | void createTextureSubImage(int scale, const QImage &image, const QRegion &damage); | ||||
115 | bool createTextureImage(const QImage &image); | ||||
114 | bool loadShmTexture(const QPointer<KWayland::Server::BufferInterface> &buffer); | 116 | bool loadShmTexture(const QPointer<KWayland::Server::BufferInterface> &buffer); | ||
115 | bool loadEglTexture(const QPointer<KWayland::Server::BufferInterface> &buffer); | 117 | bool loadEglTexture(const QPointer<KWayland::Server::BufferInterface> &buffer); | ||
116 | bool loadDmabufTexture(const QPointer< KWayland::Server::BufferInterface > &buffer); | 118 | bool loadDmabufTexture(const QPointer< KWayland::Server::BufferInterface > &buffer); | ||
117 | bool loadInternalImageObject(WindowPixmap *pixmap); | 119 | bool loadInternalImageObject(WindowPixmap *pixmap); | ||
118 | EGLImageKHR attach(const QPointer<KWayland::Server::BufferInterface> &buffer); | 120 | EGLImageKHR attach(const QPointer<KWayland::Server::BufferInterface> &buffer); | ||
119 | bool updateFromFBO(const QSharedPointer<QOpenGLFramebufferObject> &fbo); | 121 | bool updateFromFBO(const QSharedPointer<QOpenGLFramebufferObject> &fbo); | ||
120 | bool updateFromInternalImageObject(WindowPixmap *pixmap); | 122 | bool updateFromInternalImageObject(WindowPixmap *pixmap); | ||
121 | SceneOpenGLTexture *q; | 123 | SceneOpenGLTexture *q; | ||
122 | AbstractEglBackend *m_backend; | 124 | AbstractEglBackend *m_backend; | ||
123 | EGLImageKHR m_image; | 125 | EGLImageKHR m_image; | ||
124 | }; | 126 | }; | ||
125 | 127 | | |||
126 | } | 128 | } | ||
127 | 129 | | |||
128 | #endif | 130 | #endif |