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

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

Issue 2188623004: SkPDF: SkPDFStream takes a unique_ptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/SkPDFFont.cpp ('k') | src/pdf/SkPDFFormXObject.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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 SkPDFFormXObject_DEFINED 9 #ifndef SkPDFFormXObject_DEFINED
10 #define SkPDFFormXObject_DEFINED 10 #define SkPDFFormXObject_DEFINED
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 /** Create a PDF form XObject. Entries for the dictionary entries are 31 /** Create a PDF form XObject. Entries for the dictionary entries are
32 * automatically added. 32 * automatically added.
33 * @param device The set of graphical elements on this form. 33 * @param device The set of graphical elements on this form.
34 */ 34 */
35 explicit SkPDFFormXObject(SkPDFDevice* device); 35 explicit SkPDFFormXObject(SkPDFDevice* device);
36 /** 36 /**
37 * Create a PDF form XObject from a raw content stream and associated 37 * Create a PDF form XObject from a raw content stream and associated
38 * resources. 38 * resources.
39 */ 39 */
40 explicit SkPDFFormXObject(SkStreamAsset* content, 40 explicit SkPDFFormXObject(std::unique_ptr<SkStreamAsset> content,
41 SkRect bbox, 41 SkRect bbox,
42 SkPDFDict* resourceDict); 42 SkPDFDict* resourceDict);
43 virtual ~SkPDFFormXObject(); 43 virtual ~SkPDFFormXObject();
44 44
45 private: 45 private:
46 void init(const char* colorSpace, 46 void init(const char* colorSpace,
47 SkPDFDict* resourceDict, SkPDFArray* bbox); 47 SkPDFDict* resourceDict, SkPDFArray* bbox);
48 }; 48 };
49 49
50 #endif 50 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFont.cpp ('k') | src/pdf/SkPDFFormXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698