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

Unified Diff: ui/gfx/canvas.h

Issue 568343002: Removed a few manual roundrect path creations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/gfx/canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index f3d9486f9a6224cbb804aa2288ef56cecdbd5f46..85e6a6e77dd789e7f33c3b8c3cc02808a9a57ce3 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -260,6 +260,15 @@ class GFX_EXPORT Canvas {
// given |paint| parameters.
void DrawRoundRect(const Rect& rect, int radius, const SkPaint& paint);
+ // Draws the given rectangle with rounded corners, where each radius can be
+ // set separately, given |paint| parameters.
+ void DrawRoundRect(const Rect& rect,
+ int radTL,
danakj 2014/09/15 17:49:52 style: rad_top_left
+ int radTR,
+ int radBL,
+ int radBR,
+ const SkPaint& paint);
+
// Draws the given path using the given |paint| parameters.
void DrawPath(const SkPath& path, const SkPaint& paint);
« no previous file with comments | « chrome/browser/ui/views/status_bubble_views.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698