Chromium Code Reviews| Index: experimental/PdfViewer/SkPdfRenderer.h |
| =================================================================== |
| --- experimental/PdfViewer/SkPdfRenderer.h (revision 10006) |
| +++ experimental/PdfViewer/SkPdfRenderer.h (working copy) |
| @@ -11,6 +11,7 @@ |
| class SkCanvas; |
| class SkNativeParsedPDF; |
| +class SkRect; |
| // TODO(edisonn): move in another file |
| class SkPdfRenderer : public SkRefCnt { |
| @@ -20,7 +21,7 @@ |
| virtual ~SkPdfRenderer() {unload();} |
| // TODO(edisonn): add options to render forms, or not |
| - bool renderPage(int page, SkCanvas* canvas) const; |
| + bool renderPage(int page, SkCanvas* canvas, const SkRect& dst) const; |
|
reed1
2013/07/11 15:27:13
Why is this better than just using the matrix on t
edisonn
2013/07/11 15:36:24
there is some magic I need to do to remap the matr
|
| bool load(const SkString inputFileName); |
| bool loaded() const {return fPdfDoc != NULL;} |