| 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 |
| 11 #define PDF_TRACK_OBJECT_USAGE |
| 12 //#define PDF_TRACK_STREAM_OFFSETS |
| 11 //#define PDF_TRACE | 13 //#define PDF_TRACE |
| 12 //#define PDF_TRACE_READ_TOKEN | 14 //#define PDF_TRACE_READ_TOKEN |
| 13 //#define PDF_TRACE_DRAWTEXT | 15 //#define PDF_TRACE_DRAWTEXT |
| 14 //#define PDF_TRACE_DIFF_IN_PNG | 16 //#define PDF_TRACE_DIFF_IN_PNG |
| 15 //#define PDF_DEBUG_NO_CLIPING | 17 //#define PDF_DEBUG_NO_CLIPING |
| 16 //#define PDF_DEBUG_NO_PAGE_CLIPING | 18 //#define PDF_DEBUG_NO_PAGE_CLIPING |
| 17 //#define PDF_DEBUG_3X | 19 //#define PDF_DEBUG_3X |
| 18 | 20 |
| 21 |
| 22 // TODO(edisonn): pass a flag to say how it was used? e.g. asked the type? Obtai
ned value? |
| 23 // Implement it when it will be needed the first time to fix some bug. |
| 24 #ifdef PDF_TRACK_OBJECT_USAGE |
| 25 #define SkPdfMarkObjectUsed() fUsed = true |
| 26 #else |
| 27 #define SkPdfMarkObjectUsed() |
| 28 #endif // PDF_TRACK_OBJECT_USAGE |
| 29 |
| 30 #ifdef PDF_TRACK_OBJECT_USAGE |
| 31 #define SkPdfMarkObjectUnused() fUsed = false |
| 32 #else |
| 33 #define SkPdfMarkObjectUnused() |
| 34 #endif // PDF_TRACK_OBJECT_USAGE |
| 35 |
| 19 #endif // SkPdfConfig_DEFINED | 36 #endif // SkPdfConfig_DEFINED |
| OLD | NEW |