Index: experimental/PdfViewer/SkPdfConfig.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfConfig.h (revision 11092) |
+++ experimental/PdfViewer/SkPdfConfig.h (working copy) |
@@ -8,6 +8,8 @@ |
#ifndef SkPdfConfig_DEFINED |
#define SkPdfConfig_DEFINED |
+#define PDF_TRACK_OBJECT_USAGE |
+//#define PDF_TRACK_STREAM_OFFSETS |
//#define PDF_TRACE |
//#define PDF_TRACE_READ_TOKEN |
//#define PDF_TRACE_DRAWTEXT |
@@ -16,4 +18,19 @@ |
//#define PDF_DEBUG_NO_PAGE_CLIPING |
//#define PDF_DEBUG_3X |
+ |
+// TODO(edisonn): pass a flag to say how it was used? e.g. asked the type? Obtained value? |
+// Implement it when it will be needed the first time to fix some bug. |
+#ifdef PDF_TRACK_OBJECT_USAGE |
+#define SkPdfMarkObjectUsed() fUsed = true |
+#else |
+#define SkPdfMarkObjectUsed() |
+#endif // PDF_TRACK_OBJECT_USAGE |
+ |
+#ifdef PDF_TRACK_OBJECT_USAGE |
+#define SkPdfMarkObjectUnused() fUsed = false |
+#else |
+#define SkPdfMarkObjectUnused() |
+#endif // PDF_TRACK_OBJECT_USAGE |
+ |
#endif // SkPdfConfig_DEFINED |