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

Side by Side Diff: src/pdf/SkPDFDocument.h

Issue 1802963002: SkPDF: SkPDFDevice has ptr to SkPDFDocument (Closed) Base URL: https://skia.googlesource.com/skia.git@SkPdfBigSerializeRefactor
Patch Set: better explanation Created 4 years, 9 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
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDocument.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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef SkPDFDocument_DEFINED 7 #ifndef SkPDFDocument_DEFINED
8 #define SkPDFDocument_DEFINED 8 #define SkPDFDocument_DEFINED
9 9
10 #include "SkDocument.h" 10 #include "SkDocument.h"
11 #include "SkPDFMetadata.h" 11 #include "SkPDFMetadata.h"
12 #include "SkPDFTypes.h" 12 #include "SkPDFTypes.h"
13 13
14 class SkPDFDevice;
15
14 sk_sp<SkDocument> SkPDFMakeDocument( 16 sk_sp<SkDocument> SkPDFMakeDocument(
15 SkWStream* stream, 17 SkWStream* stream,
16 void (*doneProc)(SkWStream*, bool), 18 void (*doneProc)(SkWStream*, bool),
17 SkScalar rasterDpi, 19 SkScalar rasterDpi,
18 SkPixelSerializer* jpegEncoder); 20 SkPixelSerializer* jpegEncoder);
19 21
20 // Logically part of SkPDFDocument (like SkPDFCanon), but separate to 22 // Logically part of SkPDFDocument (like SkPDFCanon), but separate to
21 // keep similar functionality together. 23 // keep similar functionality together.
22 struct SkPDFObjectSerializer : SkNoncopyable { 24 struct SkPDFObjectSerializer : SkNoncopyable {
23 SkPDFObjNumMap fObjNumMap; 25 SkPDFObjNumMap fObjNumMap;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 private: 72 private:
71 SkPDFObjectSerializer fObjectSerializer; 73 SkPDFObjectSerializer fObjectSerializer;
72 SkPDFCanon fCanon; 74 SkPDFCanon fCanon;
73 SkTArray<sk_sp<const SkPDFDevice>> fPageDevices; 75 SkTArray<sk_sp<const SkPDFDevice>> fPageDevices;
74 sk_sp<SkCanvas> fCanvas; 76 sk_sp<SkCanvas> fCanvas;
75 SkScalar fRasterDpi; 77 SkScalar fRasterDpi;
76 SkPDFMetadata fMetadata; 78 SkPDFMetadata fMetadata;
77 }; 79 };
78 80
79 #endif // SkPDFDocument_DEFINED 81 #endif // SkPDFDocument_DEFINED
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698