Summary: Currently KWin::GLTexture is a nice wrapper for creating a GL texture and performing various operations including rendering. In a pending patch I want to render the FBO from a QQuickScene directly, where we have an underlying texture already, but it makes sense to re-use this class for the rendering. A similar need is in haagch's kwin VR patchset. This patch adds a constructor to GLTexture that takes an externally managed texture and provides the relevant useful KWin features. Test Plan: Used in patch series Reviewers: #kwin, zzag Reviewed By: #kwin, zzag Subscribers: zzag, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24206remotes/origin/mart/auroraeBordersRefactor
parent
0c876cd93f
commit
d78fda30ef
3 changed files with 30 additions and 1 deletions
Loading…
Reference in new issue