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

Unified Diff: ui/gfx/canvas.cc

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 | « ui/gfx/canvas.h ('k') | no next file » | 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 ed9cea122815fb411d68469ee87438dfd8ab3131..2b430afb0b89e6aaea6a7648c90b43c4f488ac5f 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -334,6 +334,15 @@ void Canvas::DrawSharpLine(PointF p1, PointF p2, SkColor color) {
DrawLine(p1, p2, flags);
}
+void Canvas::Draw1pxLine(PointF p1, PointF p2, SkColor color) {
+ ScopedCanvas scoped(this);
+ float dsf = UndoDeviceScaleFactor();
+ p1.Scale(dsf);
+ p2.Scale(dsf);
+
+ DrawLine(p1, p2, color);
+}
+
void Canvas::DrawCircle(const Point& center_point,
int radius,
const cc::PaintFlags& flags) {
« no previous file with comments | « ui/gfx/canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698