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

Unified Diff: ui/gfx/canvas.h

Issue 2714753002: Improve appearance of focus rings at fractional scales. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « ash/common/ash_constants.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 4431261bb061bd108ce836d9c0d091df59f19f04..5c0f50d2d5f0dd4a9996b4f5a297197bc9ff222c 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -424,9 +424,10 @@ class GFX_EXPORT Canvas {
// Draws a dotted gray rectangle used for focus purposes.
void DrawFocusRect(const RectF& rect);
- // Draws a |rect| in the specified region with the specified |color| with a
- // with of one logical pixel which might be more device pixels.
- void DrawSolidFocusRect(RectF rect, SkColor color, float thickness);
+ // Draws a |rect| in the specified region with the specified |color|. The
+ // width of the stroke is |thickness| dip, but the actual pixel width will be
+ // floored to ensure an integral value.
+ void DrawSolidFocusRect(RectF rect, SkColor color, int thickness);
// Tiles the image in the specified region.
// Parameters are specified relative to current canvas scale not in pixels.
« no previous file with comments | « ash/common/ash_constants.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698