Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Unified Diff: src/pdf/SkPDFCanon.h

Issue 941023005: PDF : New factory function for SkPDFDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase on 07d5947 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/doc/SkDocument_PDF.cpp ('k') | src/pdf/SkPDFDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFCanon.h
diff --git a/src/pdf/SkPDFCanon.h b/src/pdf/SkPDFCanon.h
index 6a677e9a68920d8038aef6eb9564fb3dc71955f3..7c5cdf70c1ece5ef39e3cabd71dd663b1368ea57 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;
« no previous file with comments | « src/doc/SkDocument_PDF.cpp ('k') | src/pdf/SkPDFDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698