From 6c71e0a065c2eb32139682bb1ca1cbbeb02ebcb9 Mon Sep 17 00:00:00 2001 From: benjaminwagner Date: Thu, 7 Apr 2016 08:49:31 -0700 Subject: Reverse dependency between SkScalar.h and SkFixed.h. The following are unused in Chromium, Android, Mozilla, and Google3: - SkFixedToScalar - SkScalarToFixed The following are additionally unused in Skia: - SkStrAppendFixed - SkWriteBuffer::writeFixed BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1841123002 Review URL: https://codereview.chromium.org/1841123002 --- samplecode/SamplePath.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'samplecode/SamplePath.cpp') diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp index 12cc40245f..8baa359fa3 100644 --- a/samplecode/SamplePath.cpp +++ b/samplecode/SamplePath.cpp @@ -53,17 +53,6 @@ static void test_cubic2() { SkParsePath::FromSVGString(str, &path); { -#ifdef SK_BUILD_FOR_WIN - // windows doesn't have strtof - float x = (float)strtod("9.94099e+07", nullptr); -#else - float x = strtof("9.94099e+07", nullptr); -#endif - int ix = (int)x; - int fx = (int)(x * 65536); - int ffx = SkScalarToFixed(x); - SkDebugf("%g %x %x %x\n", x, ix, fx, ffx); - SkRect r = path.getBounds(); SkIRect ir; r.round(&ir); -- cgit v1.2.3