Merge lp:~hikiko/unity/unity.opt-when-no-blur into lp:unity
| Status: | Merged |
|---|---|
| Approved by: | Marco Trevisan (Treviño) on 2016-12-20 |
| Approved revision: | 4155 |
| Merged at revision: | 4214 |
| Proposed branch: | lp:~hikiko/unity/unity.opt-when-no-blur |
| Merge into: | lp:unity |
| Diff against target: |
70 lines (+9/-6) 3 files modified
plugins/unityshell/src/unityshell.cpp (+5/-5) plugins/unityshell/src/unityshell.h (+1/-1) unity-shared/BackgroundEffectHelper.cpp (+3/-0) |
| To merge this branch: | bzr merge lp:~hikiko/unity/unity.opt-when-no-blur |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Trevisan (Treviño) | 2016-07-22 | Approve on 2016-12-20 | |
|
Review via email:
|
|||
Commit Message
shouldn't create blur rectangles when there's no blur, skips the blur rects processing in low gfx.
Description of the Change
shouldn't create blur rectangles when there's no blur, skips the blur rects processing in low gfx.
| Eleni Maria Stea (hikiko) wrote : | # |
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Mh, I think you should instead return false at the beginning of UpdateOwnerGeom
| Eleni Maria Stea (hikiko) wrote : | # |
I thought of that TBH but we call the UpdateOwnerGeometry in other places too and I wasn't sure if I should change it. For example, there's this code in BackgroundEffec
if (!UpdateOwnerGe
{
DirtyCache();
UpdateBlurG
}
Do we want to dirty +updateBlurGeom
Since, I wasn't sure, I chose the change that affects less parts of the code..
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Yeah, that's the reason... This way we can avoid these computations too... So please, go for it.
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Can you please update this branch?
- 4155. By Eleni Maria Stea on 2016-12-12
-
check if we actually have blur before updating blur geometries


also renamed paintDisplay to paintOutput because the name is comfusing, it actually paints the Display/Output intersection.