diff options
author | Hal Canary <halcanary@google.com> | 2018-01-02 16:25:53 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-03 19:59:31 +0000 |
commit | 3c36ef6be93400368fee3ea2e0dca6cff4972bb0 (patch) | |
tree | 69ce7be26f6771d4fcb3d1da3bc979fc0120285f /tests | |
parent | 0d825666f79f4d9baea489b21506da3163f73aa9 (diff) |
SkFloatToDecimal moved to src/utils
This change stages SkFloatToDecimal() for possible re-use by pdfium.
Change-Id: Iedc0c78c8a633f0b0973365d2d8b540b5443590d
Reviewed-on: https://skia-review.googlesource.com/90400
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index 19e403530f..34eada94c2 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -436,8 +436,8 @@ DEF_TEST(SkPDF_FontCanEmbedTypeface, reporter) { // test to see that all finite scalars round trip via scanf(). static void check_pdf_scalar_serialization( skiatest::Reporter* reporter, float inputFloat) { - char floatString[SkPDFUtils::kMaximumFloatDecimalLength]; - size_t len = SkPDFUtils::FloatToDecimal(inputFloat, floatString); + char floatString[kMaximumSkFloatToDecimalLength]; + size_t len = SkFloatToDecimal(inputFloat, floatString); if (len >= sizeof(floatString)) { ERRORF(reporter, "string too long: %u", (unsigned)len); return; |