From 399be5bf559f72d4649a60320a3d802f6b21780b Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Mon, 14 Mar 2016 16:51:29 -0400 Subject: Add bitmaps and skp output to Skia port This is a first-cut at supporting bitmaps. Also added a --skp option to pdfium_test to generate a Skia picture file. The picture file can be loaded in Skia's SampleApp, debugger, or skiaserver to examine the generated picture. (This also includes fixes suggested in the prior Skia CL. My apologies for fat-fingers abandoning that one.) R=dsinclair@chromium.org, tsepez@chromium.org, dsinclair Review URL: https://codereview.chromium.org/1776313002 . --- samples/BUILD.gn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'samples/BUILD.gn') diff --git a/samples/BUILD.gn b/samples/BUILD.gn index 9ff1bea4c1..5e300158c9 100644 --- a/samples/BUILD.gn +++ b/samples/BUILD.gn @@ -9,8 +9,8 @@ import("../pdfium.gni") group("samples") { testonly = true deps = [ - ":pdfium_test", ":pdfium_diff", + ":pdfium_test", ] } @@ -26,6 +26,9 @@ config("pdfium_samples_config") { if (pdf_enable_xfa) { defines += [ "PDF_ENABLE_XFA" ] } + if (pdf_use_skia) { + defines += [ "PDF_ENABLE_SKIA" ] + } } executable("pdfium_test") { @@ -56,6 +59,9 @@ executable("pdfium_test") { ] configs += [ "//v8:external_startup_data" ] } + if (pdf_use_skia) { + deps += [ "//skia" ] + } configs += [ ":pdfium_samples_config" ] } -- cgit v1.2.3