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

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: Change variable names 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
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index f3d9486f9a6224cbb804aa2288ef56cecdbd5f46..127ce2d88f56ff059ba979c9370345a4371bd3b7 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 rad_top_left,
+ int rad_top_right,
+ int rad_bottom_left,
+ int rad_bottom_right,
+ const SkPaint& paint);
+
// Draws the given path using the given |paint| parameters.
void DrawPath(const SkPath& path, const SkPaint& paint);

Powered by Google App Engine
This is Rietveld 408576698