~mc-return/unity/unity.merge-fix1069243-update-manual-tests

« back to all changes in this revision

Viewing changes to launcher/MockLauncherIcon.h

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-10-12 15:15:58 UTC
  • mfrom: (2827.3.4 launcher-reduce-copies)
  • Revision ID: tarmac-20121012151558-pgqzr521tw1gma7x
Launcher: avoid copies in launcher rendering code-path. Approved by Andrea Azzarone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    return false;
131
131
  }
132
132
 
133
 
  void SetCenter(nux::Point3 center, int monitor, nux::Geometry geo)
 
133
  void SetCenter(nux::Point3 const& center, int monitor, nux::Geometry const& geo)
134
134
  {
135
 
    center.x += geo.x;
136
 
    center.y += geo.y;
137
135
    center_[monitor] = center;
 
136
    center_[monitor].x += geo.x;
 
137
    center_[monitor].y += geo.y;
138
138
  }
139
139
 
140
140
  nux::Point3 GetCenter(int monitor)