summaryrefslogtreecommitdiffstats
path: root/ui/gfx/path.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 19:16:59 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 19:16:59 +0000
commitcd9a61c70012ba2d7062f861d9ae3fe4b831f277 (patch)
tree36ec4f771194c94f290fb433e462fce602ffcb8d /ui/gfx/path.cc
parent9bdadea89eed1e2b85b0b89df4b5a744ee933920 (diff)
downloadchromium_src-cd9a61c70012ba2d7062f861d9ae3fe4b831f277.zip
chromium_src-cd9a61c70012ba2d7062f861d9ae3fe4b831f277.tar.gz
chromium_src-cd9a61c70012ba2d7062f861d9ae3fe4b831f277.tar.bz2
Move DIP translation from ui/aura to ui/compositor.
Layer's coordinate system is now in DIP. Added support of dynamic density switching. Removed ENABLE_DIP gyp/macro and added runtime flag "--ui-enable-dip" BUG=105165, 114666 TEST=enabled monitor test. added new tests to compositor_unittests Review URL: https://chromiumcodereview.appspot.com/10221028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/path.cc')
-rw-r--r--ui/gfx/path.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/gfx/path.cc b/ui/gfx/path.cc
index db355e8..70ed739 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() {
}