summaryrefslogtreecommitdiffstats
path: root/ui/views/touchui/touch_selection_controller_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/touchui/touch_selection_controller_impl.cc')
-rw-r--r--ui/views/touchui/touch_selection_controller_impl.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
index 0bc9231..b5d5d2d 100644
--- a/ui/views/touchui/touch_selection_controller_impl.cc
+++ b/ui/views/touchui/touch_selection_controller_impl.cc
@@ -70,14 +70,7 @@ void PaintCircle(const Circle& circle, gfx::Canvas* canvas) {
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kFill_Style);
paint.setColor(circle.color);
- SkPath path;
- gfx::Rect bounds(circle.center.x() - circle.radius,
- circle.center.y() - circle.radius,
- circle.radius * 2,
- circle.radius * 2);
- SkScalar radius = SkIntToScalar(circle.radius);
- path.addRoundRect(gfx::RectToSkRect(bounds), radius, radius);
- canvas->sk_canvas()->drawPath(path, paint);
+ canvas->DrawCircle(circle.center, circle.radius, paint);
}
// The points may not match exactly, since the selection range computation may
@@ -274,7 +267,7 @@ class TouchSelectionControllerImpl::TouchContextMenuView
canvas->DrawRect(GetLocalBounds(), paint);
#else
- canvas->sk_canvas()->drawColor(SkColorSetRGB(210, 225, 246),
+ canvas->DrawColor(SkColorSetRGB(210, 225, 246),
SkXfermode::kSrc_Mode);
#endif
}