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

Unified Diff: ui/gfx/canvas.cc

Issue 2026833003: MD - update checkbox and radio buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky review Created 4 years, 7 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 | « ui/gfx/canvas.h ('k') | ui/gfx/vector_icons/checkbox_active.icon » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index 078c7c2182752c22435618d4e9292c3acad02cec..84ab395d343825eac93ab6262b0d3557b495016b 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -287,6 +287,13 @@ void Canvas::DrawCircle(const Point& center_point,
SkIntToScalar(center_point.y()), SkIntToScalar(radius), paint);
}
+void Canvas::DrawCircle(const PointF& center_point,
+ float radius,
+ const SkPaint& paint) {
+ canvas_->drawCircle(SkFloatToScalar(center_point.x()),
+ SkFloatToScalar(center_point.y()), radius, paint);
+}
+
void Canvas::DrawRoundRect(const Rect& rect,
int radius,
const SkPaint& paint) {
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/vector_icons/checkbox_active.icon » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698