Merge lp:~hikiko/unity/unity.panel-draw-optimisation into lp:unity
Proposed by
Eleni Maria Stea
on 2016-05-19
| Status: | Merged |
|---|---|
| Approved by: | Marco Trevisan (Treviño) on 2016-05-19 |
| Approved revision: | 4108 |
| Merged at revision: | 4120 |
| Proposed branch: | lp:~hikiko/unity/unity.panel-draw-optimisation |
| Merge into: | lp:unity |
| Diff against target: |
30 lines (+8/-2) 1 file modified
panel/PanelView.cpp (+8/-2) |
| To merge this branch: | bzr merge lp:~hikiko/unity/unity.panel-draw-optimisation |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Marco Trevisan (Treviño) | 2016-05-19 | Approve on 2016-05-19 | |
| PS Jenkins bot | continuous-integration | Pending | |
|
Review via email:
|
|||
Commit Message
PanelView: Don't draw it if the geo doesn't intersect the monitor geo (as in ezoom)
added check to see if the panel geometry intersects the geometry of the monitor the panel belongs to. If there's no intersection there's no need to draw it (return). If there is intersection we should only draw the intersection area (clip the non visible parts).
Description of the Change
Optimisation in PanelView::Draw:
added check to see if the panel geometry intersects the geometry of the monitor the panel belongs to. If there's no intersection there's no need to draw it (return). If there is intersection we should only draw the intersection area (clip the non visible parts).
To post a comment you must log in.


+1