summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-01 12:16:33 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-01 12:16:33 +0200
commit070d7699a71cf5fd00379daea4442db3852a747c (patch)
tree1a09a81ed40935a91df6f30305887f608023f27d /src/render/OpenGL.hpp
parent8a4e04d789eda386b17d396c742f9ad30a3d35f7 (diff)
added decoration:blur_new_optimizations
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp
index 57160787..4fd16612 100644
--- a/src/render/OpenGL.hpp
+++ b/src/render/OpenGL.hpp
@@ -38,6 +38,9 @@ struct SMonitorRenderData {
CTexture stencilTex;
+ CFramebuffer blurFB;
+ bool blurFBDirty = true;
+
wlr_box backgroundTexBox;
};
@@ -82,6 +85,8 @@ public:
void destroyMonitorResources(CMonitor*);
+ void markBlurDirtyForMonitor(CMonitor*);
+
SCurrentRenderData m_RenderData;
GLint m_iCurrentOutputFb = 0;
@@ -127,6 +132,8 @@ private:
void renderTextureInternalWithDamage(const CTexture&, wlr_box* pBox, float a, pixman_region32_t* damage, int round = 0, bool discardOpaque = false, bool noAA = false, bool allowCustomUV = false);
void renderSplash(cairo_t *const, cairo_surface_t *const);
+
+ void preBlurForCurrentMonitor();
};
inline std::unique_ptr<CHyprOpenGLImpl> g_pHyprOpenGL; \ No newline at end of file