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

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

Issue 23902018: pdfviewer: do not submit, uploaded for backup, and will be done actually after I refactor the param… Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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/SkPdfConfig.h ('k') | experimental/PdfViewer/SkPdfRenderer.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 8
9 #ifndef SkPdfRenderer_DEFINED 9 #ifndef SkPdfRenderer_DEFINED
10 #define SkPdfRenderer_DEFINED 10 #define SkPdfRenderer_DEFINED
11 11
12 // TODO(edisonn): how to remove this dependency? Should I remove the ref countin g?
13 #include "SkRefCnt.h"
14 // TODO(edisonn): remove this dependency
15 #include "SkString.h"
16
12 class SkBitmap; 17 class SkBitmap;
13 class SkCanvas; 18 class SkCanvas;
14 class SkPdfNativeDoc; 19 class SkPdfNativeDoc;
15 struct SkRect; 20 struct SkRect;
16 class SkStream; 21 class SkStream;
22 class SkString;
17 23
18 enum SkPdfContent { 24 enum SkPdfContent {
19 kNoForms_SkPdfContent, 25 kNoForms_SkPdfContent,
20 kAll_SkPdfContent, 26 kAll_SkPdfContent,
21 }; 27 };
22 28
23 // TODO(edisonn): move in another file 29 // TODO(edisonn): move in another file
24 class SkPdfRenderer : public SkRefCnt { 30 class SkPdfRenderer : public SkRefCnt {
25 SkPdfNativeDoc* fPdfDoc; 31 SkPdfNativeDoc* fPdfDoc;
26 public: 32 public:
(...skipping 14 matching lines...) Expand all
41 47
42 void reportPdfRenderStats(); 48 void reportPdfRenderStats();
43 49
44 bool SkPDFNativeRenderToBitmap(SkStream* stream, 50 bool SkPDFNativeRenderToBitmap(SkStream* stream,
45 SkBitmap* output, 51 SkBitmap* output,
46 int page = 0, 52 int page = 0,
47 SkPdfContent content = kAll_SkPdfContent, 53 SkPdfContent content = kAll_SkPdfContent,
48 double dpi = 72.0); 54 double dpi = 72.0);
49 55
50 #endif // SkPdfRenderer_DEFINED 56 #endif // SkPdfRenderer_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfConfig.h ('k') | experimental/PdfViewer/SkPdfRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698