From a6d04d90e2f0a35698a7380cef8d622a8ee0b33f Mon Sep 17 00:00:00 2001 From: "schenney@chromium.org" Date: Wed, 18 Jan 2012 18:02:10 +0000 Subject: Fixing the behavior of SkPathMeasure to reflect changes in SkPath::Iter. This implementation modifies SkPath::Iter extensively to avoid copying the points when used to measure path length. BUG=446 TEST=tests/PathMeasureTest.cpp Review URL: https://codereview.appspot.com/5533074 git-svn-id: http://skia.googlecode.com/svn/trunk@3062 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/PathMeasureTest.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/PathMeasureTest.cpp') diff --git a/tests/PathMeasureTest.cpp b/tests/PathMeasureTest.cpp index 6cc64fe394..2ff9f3a057 100644 --- a/tests/PathMeasureTest.cpp +++ b/tests/PathMeasureTest.cpp @@ -44,7 +44,6 @@ static void TestPathMeasure(skiatest::Reporter* reporter) { #endif } -#if 0 // Test the behavior following a close not followed by a move. path.reset(); path.lineTo(SK_Scalar1, 0); @@ -129,7 +128,6 @@ static void TestPathMeasure(skiatest::Reporter* reporter) { SkScalarNearlyEqual(position.fY, SK_Scalar1 * 2.0f, SK_Scalar1 * 0.0001)); REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); REPORTER_ASSERT(reporter, tangent.fY == 0); -#endif } #include "TestClassDef.h" -- cgit v1.2.3