pdfviewer: some code cleanup in renderer

Review URL: https://codereview.chromium.org/18093005

git-svn-id: http://skia.googlecode.com/svn/trunk@10006 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
edisonn@google.com 2013-07-11 14:43:15 +00:00
parent f8b6b01d51
commit 15b1118203
3 changed files with 13 additions and 10 deletions

View File

@ -17,11 +17,18 @@
#include "SkTypeface.h"
#include "SkTArray.h"
#include "SkPdfBasics.h"
#include "SkPdfNativeTokenizer.h"
#include <iostream>
#include <cstdio>
#include <stack>
#include <set>
extern "C" PdfContext* gPdfContext;
extern "C" SkBitmap* gDumpBitmap;
extern "C" SkCanvas* gDumpCanvas;
__SK_FORCE_IMAGE_DECODER_LINKING;
// TODO(edisonn): tool, show what objects were read at least, show the ones not even read

View File

@ -6,15 +6,8 @@
*/
#ifndef SkPdfParser_DEFINED
#define SkPdfParser_DEFINED
#include "SkPdfBasics.h"
#include "SkPdfNativeTokenizer.h"
extern "C" PdfContext* gPdfContext;
extern "C" SkBitmap* gDumpBitmap;
extern "C" SkCanvas* gDumpCanvas;
#ifndef SkPdfRenderer_DEFINED
#define SkPdfRenderer_DEFINED
class SkCanvas;
class SkNativeParsedPDF;
@ -39,4 +32,4 @@ public:
void reportPdfRenderStats();
#endif // SkPdfParser_DEFINED
#endif // SkPdfRenderer_DEFINED

View File

@ -24,6 +24,9 @@ DEFINE_string2(pages, p, "all", "What pages to render and how:\n"
"\tlast - last page\n"
"\tnumber - a specific page number\n"
);
DEFINE_double(DPI, 72, "DPI to be used for rendering (scale).");
// TODO(edisonn): add config for device target(gpu, raster, pdf), + ability not to render at all
// TODO(edisonn): add ability to do the op N times, bench (either load N times, render n times or load + render n times)
/**