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

Unified Diff: ui/gfx/canvas.h

Issue 2717973004: Improve painting of cros tray separators. (Closed)
Patch Set: restore include 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/system/tray/tray_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..9c339a5ca6564ea083ef1debd3cacf51cf0c039a 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -279,7 +279,7 @@ class GFX_EXPORT Canvas {
// TODO(funkysidd): Remove this (http://crbug.com/553726)
void DrawLine(const Point& p1, const Point& p2, SkColor color);
- // Draws a single pixel line with the specified color.
+ // Draws a single dip line with the specified color.
void DrawLine(const PointF& p1, const PointF& p2, SkColor color);
// Draws a line with the given |flags| parameters.
@@ -296,6 +296,9 @@ class GFX_EXPORT Canvas {
// floored to the nearest integral number of pixels.
void DrawSharpLine(PointF p1, PointF p2, SkColor color);
+ // As above, but draws a single pixel at all scale factors.
+ void Draw1pxLine(PointF p1, PointF p2, SkColor color);
+
// Draws a circle with the given |flags| parameters.
// DEPRECATED in favor of the RectF version below.
// TODO(funkysidd): Remove this (http://crbug.com/553726)
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698