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

Unified Diff: src/pdf/SkPDFTypes.cpp

Issue 1372783003: SkPDF: Implement drawImage*() properly (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-30 (Wednesday) 21:22:24 EDT Created 5 years, 3 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/pdf/SkPDFTypes.h ('k') | tests/PDFJpegEmbedTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFTypes.cpp
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index 43361fcf44df5e5b1fd3b2631d465e30603f8329..4cd48f4757e55a5f081ee517d3ae6bbb03b3838b 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -506,3 +506,17 @@ int32_t SkPDFObjNumMap::getObjectNumber(SkPDFObject* obj) const {
return *objectNumberFound;
}
+#ifdef SK_PDF_IMAGE_STATS
+SkAtomic<int> gDrawImageCalls(0);
+SkAtomic<int> gJpegImageObjects(0);
+SkAtomic<int> gRegularImageObjects(0);
+
+void SkPDFImageDumpStats() {
+ SkDebugf("\ntotal PDF drawImage/drawBitmap calls: %d\n"
+ "total PDF jpeg images: %d\n"
+ "total PDF regular images: %d\n",
+ gDrawImageCalls.load(),
+ gJpegImageObjects.load(),
+ gRegularImageObjects.load());
+}
+#endif // SK_PDF_IMAGE_STATS
« no previous file with comments | « src/pdf/SkPDFTypes.h ('k') | tests/PDFJpegEmbedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698