diff options
Diffstat (limited to 'src/pdf/SkPDFCanon.h')
-rw-r--r-- | src/pdf/SkPDFCanon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h index 6a677e9a68..7c5cdf70c1 100644 --- a/src/pdf/SkPDFCanon.h +++ b/src/pdf/SkPDFCanon.h @@ -73,6 +73,15 @@ public: void addBitmap(SkPDFBitmap*); void removeBitmap(SkPDFBitmap*); + void assertEmpty() const { + SkASSERT(fFontRecords.isEmpty()); + SkASSERT(fFunctionShaderRecords.isEmpty()); + SkASSERT(fAlphaShaderRecords.isEmpty()); + SkASSERT(fImageShaderRecords.isEmpty()); + SkASSERT(fGraphicStateRecords.isEmpty()); + SkASSERT(fBitmapRecords.isEmpty()); + } + private: struct FontRec { SkPDFFont* fFont; |