Index: src/pdf/SkPDFTypes.h |
diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h |
index 60d511409ffe719d2db344d157268553d6553428..ec527fc932cfd33737942f50b479ba15085ce4da 100644 |
--- a/src/pdf/SkPDFTypes.h |
+++ b/src/pdf/SkPDFTypes.h |
@@ -21,6 +21,10 @@ class SkPDFObjNumMap; |
class SkPDFObject; |
class SkPDFSubstituteMap; |
+#ifdef SK_PDF_IMAGE_STATS |
+#include "SkAtomics.h" |
+#endif |
+ |
/** \class SkPDFObject |
A PDF Object is the base class for primitive elements in a PDF file. A |
@@ -382,4 +386,11 @@ private: |
SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; |
}; |
+#ifdef SK_PDF_IMAGE_STATS |
+extern SkAtomic<int> gDrawImageCalls; |
+extern SkAtomic<int> gJpegImageObjects; |
+extern SkAtomic<int> gRegularImageObjects; |
+extern void SkPDFImageDumpStats(); |
+#endif // SK_PDF_IMAGE_STATS |
+ |
#endif |