OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PRINTING_COMMON_PDF_METAFILE_UTILS_H_ | 5 #ifndef PRINTING_COMMON_PDF_METAFILE_UTILS_H_ |
6 #define PRINTING_COMMON_PDF_METAFILE_UTILS_H_ | 6 #define PRINTING_COMMON_PDF_METAFILE_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
11 #include "third_party/skia/include/core/SkDocument.h" | 11 #include "third_party/skia/include/core/SkDocument.h" |
12 #include "third_party/skia/include/core/SkRefCnt.h" | 12 #include "third_party/skia/include/core/SkRefCnt.h" |
13 #include "third_party/skia/include/core/SkStream.h" | 13 #include "third_party/skia/include/core/SkStream.h" |
14 | 14 |
15 namespace printing { | 15 namespace printing { |
16 | 16 |
17 enum SkiaDocumentType { | 17 enum class SkiaDocumentType { |
Lei Zhang
2017/08/16 21:17:01
Can we split this into a separate CL?
Wei Li
2017/08/25 23:39:37
Done.
| |
18 PDF_SKIA_DOCUMENT_TYPE, | 18 PDF, |
19 // MSKP is an experimental, fragile, and diagnostic-only document type. | 19 // MSKP is an experimental, fragile, and diagnostic-only document type. |
20 MSKP_SKIA_DOCUMENT_TYPE, | 20 MSKP, |
21 MAX = MSKP | |
21 }; | 22 }; |
22 | 23 |
23 sk_sp<SkDocument> MakePdfDocument(const std::string& creator, | 24 sk_sp<SkDocument> MakePdfDocument(const std::string& creator, |
24 SkWStream* stream); | 25 SkWStream* stream); |
25 | 26 |
26 } // namespace printing | 27 } // namespace printing |
27 | 28 |
28 #endif // PRINTING_COMMON_PDF_METAFILE_UTILS_H_ | 29 #endif // PRINTING_COMMON_PDF_METAFILE_UTILS_H_ |
OLD | NEW |