| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 | 8 |
| 9 #ifndef SkPdfParser_DEFINED | 9 #ifndef SkPdfParser_DEFINED |
| 10 #define SkPdfParser_DEFINED | 10 #define SkPdfParser_DEFINED |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 virtual ~SkPdfRenderer() {unload();} | 27 virtual ~SkPdfRenderer() {unload();} |
| 28 | 28 |
| 29 // TODO(edisonn): add options to render forms, or not | 29 // TODO(edisonn): add options to render forms, or not |
| 30 bool renderPage(int page, SkCanvas* canvas) const; | 30 bool renderPage(int page, SkCanvas* canvas) const; |
| 31 | 31 |
| 32 bool load(const SkString inputFileName); | 32 bool load(const SkString inputFileName); |
| 33 bool loaded() const {return fPdfDoc != NULL;} | 33 bool loaded() const {return fPdfDoc != NULL;} |
| 34 int pages() const; | 34 int pages() const; |
| 35 void unload(); | 35 void unload(); |
| 36 SkRect MediaBox(int page) const; | 36 SkRect MediaBox(int page) const; |
| 37 size_t bytesUsed() const; |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 void reportPdfRenderStats(); | 40 void reportPdfRenderStats(); |
| 40 | 41 |
| 41 #endif // SkPdfParser_DEFINED | 42 #endif // SkPdfParser_DEFINED |
| OLD | NEW |