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

Unified Diff: ui/views/bubble/bubble_border.cc

Issue 568343002: Removed a few manual roundrect path creations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer comments Created 6 years, 3 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 | « chrome/browser/ui/views/status_bubble_views.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_border.cc
diff --git a/ui/views/bubble/bubble_border.cc b/ui/views/bubble/bubble_border.cc
index d7adfb6573033016bf9b140d09c01aebb5e7db3d..0fd0e3cebc663746f79557e8902d71767b92c8e7 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -351,9 +351,7 @@ void BubbleBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
gfx::Rect bounds(view->GetLocalBounds());
bounds.Inset(border_->GetInsets());
- SkScalar radius = SkIntToScalar(border_->GetBorderCornerRadius());
- path.addRoundRect(gfx::RectToSkRect(bounds), radius, radius);
- canvas->DrawPath(path, paint);
+ canvas->DrawRoundRect(bounds, border_->GetBorderCornerRadius(), paint);
}
} // namespace views
« no previous file with comments | « chrome/browser/ui/views/status_bubble_views.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698