| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkDeflate.h" | 8 #include "SkDeflate.h" |
| 9 #include "SkPDFTypes.h" | 9 #include "SkPDFTypes.h" |
| 10 #include "SkPDFUtils.h" | 10 #include "SkPDFUtils.h" |
| 11 #include "SkStream.h" |
| 11 #include "SkStreamPriv.h" | 12 #include "SkStreamPriv.h" |
| 12 | 13 |
| 13 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 14 | 15 |
| 15 SkString* pun(char* x) { return reinterpret_cast<SkString*>(x); } | 16 SkString* pun(char* x) { return reinterpret_cast<SkString*>(x); } |
| 16 const SkString* pun(const char* x) { | 17 const SkString* pun(const char* x) { |
| 17 return reinterpret_cast<const SkString*>(x); | 18 return reinterpret_cast<const SkString*>(x); |
| 18 } | 19 } |
| 19 | 20 |
| 20 SkPDFUnion::SkPDFUnion(Type t) : fType(t) {} | 21 SkPDFUnion::SkPDFUnion(Type t) : fType(t) {} |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 | 564 |
| 564 void SkPDFImageDumpStats() { | 565 void SkPDFImageDumpStats() { |
| 565 SkDebugf("\ntotal PDF drawImage/drawBitmap calls: %d\n" | 566 SkDebugf("\ntotal PDF drawImage/drawBitmap calls: %d\n" |
| 566 "total PDF jpeg images: %d\n" | 567 "total PDF jpeg images: %d\n" |
| 567 "total PDF regular images: %d\n", | 568 "total PDF regular images: %d\n", |
| 568 gDrawImageCalls.load(), | 569 gDrawImageCalls.load(), |
| 569 gJpegImageObjects.load(), | 570 gJpegImageObjects.load(), |
| 570 gRegularImageObjects.load()); | 571 gRegularImageObjects.load()); |
| 571 } | 572 } |
| 572 #endif // SK_PDF_IMAGE_STATS | 573 #endif // SK_PDF_IMAGE_STATS |
| OLD | NEW |