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

Side by Side Diff: experimental/PdfViewer/SkPdfRenderer.cpp

Issue 18584010: pdfviewer: add --pages arg: render a certain page (all, all in desceding order, firsl, last and by … (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « experimental/PdfViewer/SkPdfRenderer.h ('k') | experimental/PdfViewer/pdf_viewer_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkDevice.h" 9 #include "SkDevice.h"
10 #include "SkForceLinking.h" 10 #include "SkForceLinking.h"
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 void SkPdfRenderer::unload() { 2006 void SkPdfRenderer::unload() {
2007 delete fPdfDoc; 2007 delete fPdfDoc;
2008 fPdfDoc = NULL; 2008 fPdfDoc = NULL;
2009 } 2009 }
2010 2010
2011 SkRect SkPdfRenderer::MediaBox(int page) const { 2011 SkRect SkPdfRenderer::MediaBox(int page) const {
2012 SkASSERT(fPdfDoc); 2012 SkASSERT(fPdfDoc);
2013 return fPdfDoc->MediaBox(page); 2013 return fPdfDoc->MediaBox(page);
2014 } 2014 }
2015 2015
2016 size_t SkPdfRenderer::bytesUsed() { 2016 size_t SkPdfRenderer::bytesUsed() const {
2017 return fPdfDoc ? fPdfDoc->bytesUsed() : 0; 2017 return fPdfDoc ? fPdfDoc->bytesUsed() : 0;
2018 } 2018 }
2019 2019
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfRenderer.h ('k') | experimental/PdfViewer/pdf_viewer_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698