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

Unified Diff: ui/gfx/canvas_paint_win.h

Issue 17505003: Rounding error in HiDPI canvas. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_paint_win.h
diff --git a/ui/gfx/canvas_paint_win.h b/ui/gfx/canvas_paint_win.h
index 520bdcc482de1001fe59fa2f17b304ce56e35679..613641ad5cd7d65213d397092c858ae9b3ae8719 100644
--- a/ui/gfx/canvas_paint_win.h
+++ b/ui/gfx/canvas_paint_win.h
@@ -121,8 +121,8 @@ class UI_EXPORT CanvasSkiaPaint : public Canvas {
// This will bring the canvas into the screen coordinate system for the
// dirty rect
canvas->translate(
- SkScalarRoundToInt(-ps_.rcPaint.left/ui::win::GetDeviceScaleFactor()),
- SkScalarRoundToInt(-ps_.rcPaint.top/ui::win::GetDeviceScaleFactor()));
+ -ps_.rcPaint.left/ui::win::GetDeviceScaleFactor(),
+ -ps_.rcPaint.top/ui::win::GetDeviceScaleFactor());
}
// If true, this canvas was created for a BeginPaint.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698