diff options
| author | Chris Townsend <christopher.townsend@canonical.com> | 2013-10-29 18:39:42 -0400 |
|---|---|---|
| committer | Chris Townsend <christopher.townsend@canonical.com> | 2013-10-29 18:39:42 -0400 |
| commit | 907f522ce0eee15328ca7b67c03c43e0a960773e (patch) | |
| tree | 882966f530fb5a4e566e030f61bfb3337f7e990b /plugins/unityshell | |
| parent | af4af8fd19a6a94922c1aff190dba1798ddeae36 (diff) | |
Remove redraw_view_if_damaged/NeedSoftRedraw() combo as it's no longer needed due to the changes introduced for performance.
(bzr r3347.3.9)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index e91739d14..d5667fcdd 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -1544,18 +1544,6 @@ void UnityScreen::donePaint() cScreen->donePaint(); } -void redraw_view_if_damaged(nux::ObjectPtr<nux::View> const& view, CompRegion const& damage) -{ - if (!view || view->IsRedrawNeeded()) - return; - - auto const& geo = view->GetAbsoluteGeometry(); - CompRegion region(geo.x, geo.y, geo.width, geo.height); - - if (damage.intersects(region)) - view->NeedSoftRedraw(); -} - void UnityScreen::compizDamageNux(CompRegion const& damage) { /* Ask nux to present anything in our damage region |
