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

Unified Diff: ui/gfx/canvas.h

Issue 2689273002: Fix appearance of header row separators in table view at fractional (Closed)
Patch Set: pkasting review 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 | « no previous file | 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 bb2a90e13934f9bf653e9cb85b50dba90b266402..4431261bb061bd108ce836d9c0d091df59f19f04 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -292,6 +292,10 @@ class GFX_EXPORT Canvas {
const PointF& p2,
const cc::PaintFlags& flags);
+ // Draws a line that's a single DIP. At fractional scale factors, this is
+ // floored to the nearest integral number of pixels.
+ void DrawSharpLine(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)
@@ -422,7 +426,7 @@ class GFX_EXPORT Canvas {
// 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(const RectF& rect, SkColor color, float thickness);
+ void DrawSolidFocusRect(RectF rect, SkColor color, float thickness);
// Tiles the image in the specified region.
// Parameters are specified relative to current canvas scale not in pixels.
« no previous file with comments | « no previous file | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698