blob: 6fe6938f5b164a972570ad4b1b8360d6b04fe735 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#pragma once
#include "../../defines.hpp"
#include "PassElement.hpp"
class CGradientValueData;
class CRenderPass {
public:
bool empty() const;
bool single() const;
bool needsIntrospection() const;
void add(SP<IPassElement> elem);
void clear();
CRegion render(const CRegion& damage_);
private:
CRegion damage;
CRegion occludedRegion;
CRegion totalLiveBlurRegion;
struct SPassElementData {
CRegion elementDamage;
SP<IPassElement> element;
bool discard = false;
};
std::vector<SP<SPassElementData>> m_vPassElements;
SP<IPassElement> currentPassInfo = nullptr;
void simplify();
float oneBlurRadius();
friend class CHyprOpenGLImpl;
};
|