OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPdfConfig_DEFINED | 8 #ifndef SkPdfConfig_DEFINED |
9 #define SkPdfConfig_DEFINED | 9 #define SkPdfConfig_DEFINED |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 // At various points in code we show the value of important variables with this
flag | 25 // At various points in code we show the value of important variables with this
flag |
26 //#define PDF_TRACE | 26 //#define PDF_TRACE |
27 | 27 |
28 // displays the result of each read token, individual result | 28 // displays the result of each read token, individual result |
29 //#define PDF_TRACE_READ_TOKEN | 29 //#define PDF_TRACE_READ_TOKEN |
30 | 30 |
31 // Every drawtext draws before a rectangle, in this way we see the one that migh
t have failed | 31 // Every drawtext draws before a rectangle, in this way we see the one that migh
t have failed |
32 //#define PDF_TRACE_DRAWTEXT | 32 //#define PDF_TRACE_DRAWTEXT |
33 | 33 |
34 // For each render operations, it will dump the canvas in a png | 34 // For each render operation, the canvas will be drawn to a png named |
| 35 // "/tmp/log_step_by_step/step-%i-%s.png" |
35 //#define PDF_TRACE_DIFF_IN_PNG | 36 //#define PDF_TRACE_DIFF_IN_PNG |
36 | 37 |
37 // Does not clip at all, can be used in debugging issues | 38 // Does not clip at all, can be used in debugging issues |
38 //#define PDF_DEBUG_NO_CLIPING | 39 //#define PDF_DEBUG_NO_CLIPING |
39 | 40 |
40 // Does not click the page, use is with 3x | 41 // Does not click the page, use is with 3x |
41 //#define PDF_DEBUG_NO_PAGE_CLIPING | 42 //#define PDF_DEBUG_NO_PAGE_CLIPING |
42 | 43 |
43 // render the page 3X bigger (with content in center) - used to make sure we don
't mess up | 44 // render the page 3X bigger (with content in center) - used to make sure we don
't mess up |
44 // positioning | 45 // positioning |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 #ifdef PDF_TRACK_STREAM_OFFSETS | 97 #ifdef PDF_TRACK_STREAM_OFFSETS |
97 struct SkPdfInputStreamRange { | 98 struct SkPdfInputStreamRange { |
98 SkPdfInputStream fInputStream; | 99 SkPdfInputStream fInputStream; |
99 const unsigned char* fRangeStart; | 100 const unsigned char* fRangeStart; |
100 const unsigned char* fRangeEnd; | 101 const unsigned char* fRangeEnd; |
101 }; | 102 }; |
102 #endif // PDF_TRACK_STREAM_OFFSETS | 103 #endif // PDF_TRACK_STREAM_OFFSETS |
103 | 104 |
104 | 105 |
105 #endif // SkPdfConfig_DEFINED | 106 #endif // SkPdfConfig_DEFINED |
OLD | NEW |