aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf')
-rw-r--r--src/pdf/SkPDFFont.h2
-rw-r--r--src/pdf/SkPDFGraphicState.h2
-rw-r--r--src/pdf/SkPDFPage.h2
-rw-r--r--src/pdf/SkPDFResourceDict.cpp2
-rw-r--r--src/pdf/SkPDFResourceDict.h1
-rw-r--r--src/pdf/SkPDFShader.cpp2
-rw-r--r--src/pdf/SkPDFStream.h1
-rw-r--r--src/pdf/SkPDFTypes.cpp10
8 files changed, 10 insertions, 12 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h
index f5d358f34a..694c69ac39 100644
--- a/src/pdf/SkPDFFont.h
+++ b/src/pdf/SkPDFFont.h
@@ -78,6 +78,7 @@ private:
reference to each instantiated class.
*/
class SkPDFFont : public SkPDFDict {
+ SK_DECLARE_INST_COUNT(SkPDFFont)
public:
virtual ~SkPDFFont();
@@ -198,6 +199,7 @@ private:
// This should be made a hash table if performance is a problem.
static SkTDArray<FontRec>& CanonicalFonts();
static SkBaseMutex& CanonicalFontsMutex();
+ typedef SkPDFDict INHERITED;
};
#endif
diff --git a/src/pdf/SkPDFGraphicState.h b/src/pdf/SkPDFGraphicState.h
index 84c429105e..9182efeffb 100644
--- a/src/pdf/SkPDFGraphicState.h
+++ b/src/pdf/SkPDFGraphicState.h
@@ -27,6 +27,7 @@ class SkPDFFormXObject;
*/
class SkPDFGraphicState : public SkPDFDict {
+ SK_DECLARE_INST_COUNT(SkPDFGraphicState)
public:
enum SkPDFSMaskMode {
kAlpha_SMaskMode,
@@ -104,6 +105,7 @@ private:
static SkPDFObject* GetInvertFunction();
static int Find(const SkPaint& paint);
+ typedef SkPDFDict INHERITED;
};
#endif
diff --git a/src/pdf/SkPDFPage.h b/src/pdf/SkPDFPage.h
index 2ce773c017..47573c7438 100644
--- a/src/pdf/SkPDFPage.h
+++ b/src/pdf/SkPDFPage.h
@@ -25,6 +25,7 @@ class SkWStream;
tree and points to the content of the page.
*/
class SkPDFPage : public SkPDFDict {
+ SK_DECLARE_INST_COUNT(SkPDFPage)
public:
/** Create a PDF page with the passed PDF device. The device need not
* have content on it yet.
@@ -102,6 +103,7 @@ private:
// Once the content is finalized, put it into a stream for output.
SkAutoTUnref<SkPDFStream> fContentStream;
+ typedef SkPDFDict INHERITED;
};
#endif
diff --git a/src/pdf/SkPDFResourceDict.cpp b/src/pdf/SkPDFResourceDict.cpp
index 6f5d1679a3..8a0208d64a 100644
--- a/src/pdf/SkPDFResourceDict.cpp
+++ b/src/pdf/SkPDFResourceDict.cpp
@@ -8,8 +8,6 @@
#include "SkPDFResourceDict.h"
#include "SkPostConfig.h"
-SK_DEFINE_INST_COUNT(SkPDFResourceDict)
-
// Sanity check that the values of enum SkPDFResourceType correspond to the
// expected values as defined in the arrays below.
// If these are failing, you may need to update the resource_type_prefixes
diff --git a/src/pdf/SkPDFResourceDict.h b/src/pdf/SkPDFResourceDict.h
index ab25b4a4dc..17ea338f59 100644
--- a/src/pdf/SkPDFResourceDict.h
+++ b/src/pdf/SkPDFResourceDict.h
@@ -95,6 +95,7 @@ private:
SkTSet<SkPDFObject*> fResources;
SkTDArray<SkPDFDict*> fTypes;
+ typedef SkPDFDict INHERITED;
};
#endif
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp
index 60992c3bf6..94bdf2d78d 100644
--- a/src/pdf/SkPDFShader.cpp
+++ b/src/pdf/SkPDFShader.cpp
@@ -499,6 +499,7 @@ private:
};
class SkPDFFunctionShader : public SkPDFDict, public SkPDFShader {
+ SK_DECLARE_INST_COUNT(SkPDFFunctionShader)
public:
explicit SkPDFFunctionShader(SkPDFShader::State* state);
virtual ~SkPDFFunctionShader() {
@@ -524,6 +525,7 @@ private:
SkAutoTDelete<const SkPDFShader::State> fState;
SkPDFStream* makePSFunction(const SkString& psCode, SkPDFArray* domain);
+ typedef SkPDFDict INHERITED;
};
/**
diff --git a/src/pdf/SkPDFStream.h b/src/pdf/SkPDFStream.h
index d7ff115ba9..6371bc187d 100644
--- a/src/pdf/SkPDFStream.h
+++ b/src/pdf/SkPDFStream.h
@@ -25,6 +25,7 @@ class SkPDFCatalog;
is feasible.
*/
class SkPDFStream : public SkPDFDict {
+ SK_DECLARE_INST_COUNT(SkPDFStream)
public:
/** Create a PDF stream. A Length entry is automatically added to the
* stream dictionary. The stream may be retained (stream->ref() may be
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index ed02d2bd12..55871c507d 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -17,16 +17,6 @@
#define SNPRINTF snprintf
#endif
-SK_DEFINE_INST_COUNT(SkPDFArray)
-SK_DEFINE_INST_COUNT(SkPDFBool)
-SK_DEFINE_INST_COUNT(SkPDFDict)
-SK_DEFINE_INST_COUNT(SkPDFInt)
-SK_DEFINE_INST_COUNT(SkPDFName)
-SK_DEFINE_INST_COUNT(SkPDFObject)
-SK_DEFINE_INST_COUNT(SkPDFObjRef)
-SK_DEFINE_INST_COUNT(SkPDFScalar)
-SK_DEFINE_INST_COUNT(SkPDFString)
-
///////////////////////////////////////////////////////////////////////////////
void SkPDFObject::emit(SkWStream* stream, SkPDFCatalog* catalog,