summaryrefslogtreecommitdiffstats
path: root/skia/config
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 21:30:39 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 21:30:39 +0000
commit4b63c934d571a5a1d773fd3129edeab4bd2c4504 (patch)
tree50f0df251c814e91a0a0510e9f76cb3b972e2fc7 /skia/config
parent8360c7edcb39a407723ce7c32a0fabeeae397f7a (diff)
downloadchromium_src-4b63c934d571a5a1d773fd3129edeab4bd2c4504.zip
chromium_src-4b63c934d571a5a1d773fd3129edeab4bd2c4504.tar.gz
chromium_src-4b63c934d571a5a1d773fd3129edeab4bd2c4504.tar.bz2
+ This CL pulls in all the PDF code (i.e. we are now compiling the PDF backend on Chrome).
+ Add a Metafile to contain Skia PDF content. + Add a VectorPlatformDevice for use with the Skia PDF backend. BUG=62889 TEST=NONE Review URL: http://codereview.chromium.org/6499024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/config')
-rw-r--r--skia/config/SkUserConfig.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index d9746b7..a7d830a 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -113,6 +113,33 @@
*/
//#define SK_USE_RUNTIME_GLOBALS
+/* If zlib is available and you want to support the flate compression
+ algorithm (used in PDF generation), define SK_ZLIB_INCLUDE to be the
+ include path.
+ */
+//#define SK_ZLIB_INCLUDE <zlib.h>
+#if defined(USE_SYSTEM_ZLIB)
+#define SK_ZLIB_INCLUDE <zlib.h>
+#else
+#define SK_ZLIB_INCLUDE "third_party/zlib/zlib.h"
+#define MOZ_Z_inflate inflate
+#define MOZ_Z_inflateInit_ inflateInit_
+#define MOZ_Z_inflateEnd inflateEnd
+#define MOZ_Z_deflate deflate
+#define MOZ_Z_deflateInit_ deflateInit_
+#define MOZ_Z_deflateEnd deflateEnd
+#endif
+
+/* Define this to allow PDF scalars above 32k. The PDF/A spec doesn't allow
+ them, but modern PDF interpreters should handle them just fine.
+ */
+//#define SK_ALLOW_LARGE_PDF_SCALARS
+
+/* Define this to remove dimension checks on bitmaps. Not all blits will be
+ correct yet, so this is mostly for debugging the implementation.
+ */
+//#define SK_ALLOW_OVER_32K_BITMAPS
+
/* To write debug messages to a console, skia will call SkDebugf(...) following
printf conventions (e.g. const char* format, ...). If you want to redirect