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 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 Loading... |
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 |
OLD | NEW |