aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePath.cpp
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-04-07 08:49:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-07 08:49:31 -0700
commit6c71e0a065c2eb32139682bb1ca1cbbeb02ebcb9 (patch)
tree8ca1b92cf353a1393429b034e95da6ebc3b5eb55 /samplecode/SamplePath.cpp
parent6f01104b1d86b861b366b3511c8f2567eca4a9f3 (diff)
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
Diffstat (limited to 'samplecode/SamplePath.cpp')
-rw-r--r--samplecode/SamplePath.cpp11
1 files changed, 0 insertions, 11 deletions
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);