| Index: ui/gfx/shadow_value.cc
|
| diff --git a/ui/gfx/shadow_value.cc b/ui/gfx/shadow_value.cc
|
| index 3bef43ad82600e490fc073f7e2e7a301aaf357a9..7e310578c3d19656803f1b0c26d845da1dfec1f4 100644
|
| --- a/ui/gfx/shadow_value.cc
|
| +++ b/ui/gfx/shadow_value.cc
|
| @@ -8,7 +8,7 @@
|
|
|
| #include "base/strings/stringprintf.h"
|
| #include "ui/gfx/geometry/insets.h"
|
| -#include "ui/gfx/geometry/point_conversions.h"
|
| +#include "ui/gfx/geometry/vector2d_conversions.h"
|
|
|
| namespace gfx {
|
|
|
| @@ -17,20 +17,18 @@ ShadowValue::ShadowValue()
|
| color_(0) {
|
| }
|
|
|
| -ShadowValue::ShadowValue(const gfx::Point& offset,
|
| +ShadowValue::ShadowValue(const gfx::Vector2d& offset,
|
| double blur,
|
| SkColor color)
|
| - : offset_(offset),
|
| - blur_(blur),
|
| - color_(color) {
|
| + : offset_(offset), blur_(blur), color_(color) {
|
| }
|
|
|
| ShadowValue::~ShadowValue() {
|
| }
|
|
|
| ShadowValue ShadowValue::Scale(float scale) const {
|
| - gfx::Point scaled_offset =
|
| - gfx::ToFlooredPoint(gfx::ScalePoint(offset_, scale));
|
| + gfx::Vector2d scaled_offset =
|
| + gfx::ToFlooredVector2d(gfx::ScaleVector2d(offset_, scale));
|
| return ShadowValue(scaled_offset, blur_ * scale, color_);
|
| }
|
|
|
|
|