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

Unified Diff: ui/gfx/path.cc

Issue 10221028: Move DIP translation from ui/aura to ui/compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable tests that doesn't run on bots Created 8 years, 7 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/path.h ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/path.cc
diff --git a/ui/gfx/path.cc b/ui/gfx/path.cc
index db355e8166e8d13ad84ae7d7d4574bcaae3ac6dc..70ed739ab8dc5ae80d4338125c5f06fbc88ca31e 100644
--- a/ui/gfx/path.cc
+++ b/ui/gfx/path.cc
@@ -19,14 +19,12 @@ Path::Path(const Point* points, size_t count) {
lineTo(SkIntToScalar(points[i].x), SkIntToScalar(points[i].y));
}
-#if defined(ENABLE_DIP)
Path::Path(const PointF* points, size_t count) {
DCHECK(count > 1);
moveTo(SkFloatToScalar(points[0].x), SkFloatToScalar(points[0].y));
for (size_t i = 1; i < count; ++i)
lineTo(SkFloatToScalar(points[i].x), SkFloatToScalar(points[i].y));
}
-#endif
Path::~Path() {
}
« no previous file with comments | « ui/gfx/path.h ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698