Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: skia/config/SkUserConfig.h

Issue 6499024: Connect Skia PDF backend to printing subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (80721) Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 The Android Open Source Project 2 * Copyright (C) 2006 The Android Open Source Project
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 not, define this to the appropriate type. 106 not, define this to the appropriate type.
107 */ 107 */
108 //#define SkLONGLONG int64_t 108 //#define SkLONGLONG int64_t
109 109
110 110
111 /* Some envorinments do not suport writable globals (eek!). If yours does not, 111 /* Some envorinments do not suport writable globals (eek!). If yours does not,
112 define this flag. 112 define this flag.
113 */ 113 */
114 //#define SK_USE_RUNTIME_GLOBALS 114 //#define SK_USE_RUNTIME_GLOBALS
115 115
116 /* If zlib is available and you want to support the flate compression
117 algorithm (used in PDF generation), define SK_ZLIB_INCLUDE to be the
118 include path.
119 */
120 //#define SK_ZLIB_INCLUDE <zlib.h>
121 #if defined(USE_SYSTEM_ZLIB)
122 #define SK_ZLIB_INCLUDE <zlib.h>
123 #else
124 #define SK_ZLIB_INCLUDE "third_party/zlib/zlib.h"
125 #define MOZ_Z_inflate inflate
126 #define MOZ_Z_inflateInit_ inflateInit_
127 #define MOZ_Z_inflateEnd inflateEnd
128 #define MOZ_Z_deflate deflate
129 #define MOZ_Z_deflateInit_ deflateInit_
130 #define MOZ_Z_deflateEnd deflateEnd
131 #endif
132
133 /* Define this to allow PDF scalars above 32k. The PDF/A spec doesn't allow
134 them, but modern PDF interpreters should handle them just fine.
135 */
136 //#define SK_ALLOW_LARGE_PDF_SCALARS
137
138 /* Define this to remove dimension checks on bitmaps. Not all blits will be
139 correct yet, so this is mostly for debugging the implementation.
140 */
141 //#define SK_ALLOW_OVER_32K_BITMAPS
142
116 143
117 /* To write debug messages to a console, skia will call SkDebugf(...) following 144 /* To write debug messages to a console, skia will call SkDebugf(...) following
118 printf conventions (e.g. const char* format, ...). If you want to redirect 145 printf conventions (e.g. const char* format, ...). If you want to redirect
119 this to something other than printf, define yours here 146 this to something other than printf, define yours here
120 */ 147 */
121 //#define SkDebugf(...) MyFunction(__VA_ARGS__) 148 //#define SkDebugf(...) MyFunction(__VA_ARGS__)
122 149
123 150
124 /* If SK_DEBUG is defined, then you can optionally define SK_SUPPORT_UNITTEST 151 /* If SK_DEBUG is defined, then you can optionally define SK_SUPPORT_UNITTEST
125 which will run additional self-tests at startup. These can take a long time, 152 which will run additional self-tests at startup. These can take a long time,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 #endif 231 #endif
205 232
206 // The default crash macro writes to badbeef which can cause some strange 233 // The default crash macro writes to badbeef which can cause some strange
207 // problems. Instead, pipe this through to the logging function as a fatal 234 // problems. Instead, pipe this through to the logging function as a fatal
208 // assertion. 235 // assertion.
209 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") 236 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH")
210 237
211 // ===== End Chrome-specific definitions ===== 238 // ===== End Chrome-specific definitions =====
212 239
213 #endif 240 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698