| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gfx/quad_f.h" | 5 #include "ui/gfx/geometry/quad_f.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 | 12 |
| 13 void QuadF::operator=(const RectF& rect) { | 13 void QuadF::operator=(const RectF& rect) { |
| 14 p1_ = PointF(rect.x(), rect.y()); | 14 p1_ = PointF(rect.x(), rect.y()); |
| 15 p2_ = PointF(rect.right(), rect.y()); | 15 p2_ = PointF(rect.right(), rect.y()); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 return result; | 118 return result; |
| 119 } | 119 } |
| 120 | 120 |
| 121 QuadF operator-(const QuadF& lhs, const Vector2dF& rhs) { | 121 QuadF operator-(const QuadF& lhs, const Vector2dF& rhs) { |
| 122 QuadF result = lhs; | 122 QuadF result = lhs; |
| 123 result -= rhs; | 123 result -= rhs; |
| 124 return result; | 124 return result; |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace gfx | 127 } // namespace gfx |
| OLD | NEW |