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

Unified Diff: ui/gfx/quad_f.cc

Issue 15298013: ui: Inline QuadF::BoundingBox() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/quad_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/quad_f.cc
diff --git a/ui/gfx/quad_f.cc b/ui/gfx/quad_f.cc
index aba67a3248334e23b56f0f656d21a7b26d216097..6e8cfe394ab11a8edccc1bbda501af31e2747c9e 100644
--- a/ui/gfx/quad_f.cc
+++ b/ui/gfx/quad_f.cc
@@ -4,7 +4,6 @@
#include "ui/gfx/quad_f.h"
-#include <cmath>
#include <limits>
#include "base/stringprintf.h"
@@ -92,14 +91,6 @@ bool QuadF::Contains(const PointF& point) const {
|| PointIsInTriangle(point, p1_, p3_, p4_);
}
-RectF QuadF::BoundingBox() const {
- float rl = std::min(std::min(p1_.x(), p2_.x()), std::min(p3_.x(), p4_.x()));
- float rr = std::max(std::max(p1_.x(), p2_.x()), std::max(p3_.x(), p4_.x()));
- float rt = std::min(std::min(p1_.y(), p2_.y()), std::min(p3_.y(), p4_.y()));
- float rb = std::max(std::max(p1_.y(), p2_.y()), std::max(p3_.y(), p4_.y()));
- return RectF(rl, rt, rr - rl, rb - rt);
-}
-
void QuadF::Scale(float x_scale, float y_scale) {
p1_.Scale(x_scale, y_scale);
p2_.Scale(x_scale, y_scale);
« no previous file with comments | « ui/gfx/quad_f.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698