Index: ui/gfx/canvas.h |
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h |
index 0c409447a8ac7e43e58842178ba425e20a9d14bd..cdaee8e1bd0285a3019cbc480b314c07b94165cf 100644 |
--- a/ui/gfx/canvas.h |
+++ b/ui/gfx/canvas.h |
@@ -20,6 +20,7 @@ |
namespace gfx { |
class Rect; |
+class RectF; |
class FontList; |
class Point; |
class Size; |
@@ -248,9 +249,15 @@ class GFX_EXPORT Canvas { |
const SkPaint& paint); |
// Draws the given rectangle with rounded corners of |radius| using the |
- // given |paint| parameters. |
+ // given |paint| parameters. NOTE: The RectF version is preferred because the |
+ // rectangle should be painted at a half-pixel offset when painting with |
+ // odd-numbered thickness. |
Evan Stade
2015/11/10 00:34:32
I don't even think you need to write this much. I'
Matt Giuca
2015/11/10 00:53:15
Done.
|
void DrawRoundRect(const Rect& rect, int radius, const SkPaint& paint); |
+ // Draws the given rectangle with rounded corners of |radius| using the |
+ // given |paint| parameters. |
+ void DrawRoundRect(const RectF& rect, float radius, const SkPaint& paint); |
+ |
// Draws the given path using the given |paint| parameters. |
void DrawPath(const SkPath& path, const SkPaint& paint); |