Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Unified Diff: ui/gfx/rect_f.cc

Issue 12084031: A host of micro-optimizations and a refactor of TimeForBoundsToIntersect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasing to tip of tree Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/rect_f.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_f.cc
diff --git a/ui/gfx/rect_f.cc b/ui/gfx/rect_f.cc
index d7b1089c96de6c556d3fc08b85ebc2e1fe86c4cd..0f055e1928dbc9fb7b3b4a073cd9a5499c45ef09 100644
--- a/ui/gfx/rect_f.cc
+++ b/ui/gfx/rect_f.cc
@@ -31,18 +31,6 @@ std::string RectF::ToString() const {
size().ToString().c_str());
}
-RectF operator+(const RectF& lhs, const Vector2dF& rhs) {
- RectF result(lhs);
- result += rhs;
- return result;
-}
-
-RectF operator-(const RectF& lhs, const Vector2dF& rhs) {
- RectF result(lhs);
- result -= rhs;
- return result;
-}
-
RectF IntersectRects(const RectF& a, const RectF& b) {
RectF result = a;
result.Intersect(b);
@@ -61,12 +49,6 @@ RectF SubtractRects(const RectF& a, const RectF& b) {
return result;
}
-RectF ScaleRect(const RectF& r, float x_scale, float y_scale) {
- RectF result = r;
- result.Scale(x_scale, y_scale);
- return result;
-}
-
RectF BoundingRect(const PointF& p1, const PointF& p2) {
float rx = std::min(p1.x(), p2.x());
float ry = std::min(p1.y(), p2.y());
« no previous file with comments | « ui/gfx/rect_f.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698