From 844d79e853074c99b7e5e64e051f1e1236c1723e Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Fri, 16 Feb 2018 03:46:26 +0000 Subject: Improve performance of writing path floats. This CL copies the SkPDF code to convert floats into strings when writing back to PDF files. Change-Id: I8f8af3924a07aa67f93b9d951af1eef5d2c705db Reviewed-on: https://pdfium-review.googlesource.com/21990 Commit-Queue: dsinclair Reviewed-by: Lei Zhang Reviewed-by: Hal Canary --- third_party/BUILD.gn | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'third_party/BUILD.gn') diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 1cfee77c60..fc6a7e50c8 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -12,6 +12,7 @@ group("third_party") { deps = [ ":bigint", ":pdfium_base", + ":skia_shared", ] if (pdf_bundle_freetype) { deps += [ ":fx_freetype" ] @@ -568,3 +569,15 @@ jumbo_source_set("pdfium_base") { "build/build_config.h", ] } + +jumbo_source_set("skia_shared") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ + "//build/config/compiler:no_chromium_code", + ":pdfium_third_party_config", + ] + sources = [ + "skia_shared/SkFloatToDecimal.cpp", + "skia_shared/SkFloatToDecimal.h", + ] +} -- cgit v1.2.3