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

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

Issue 1068343003: SkPDF: ResourceDict replaced by factory function (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-04-08 (Wednesday) 17:35:39 EDT Created 5 years, 8 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/doc/SkDocument_PDF.cpp ('k') | src/pdf/SkPDFDevice.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFDevice_DEFINED 10 #ifndef SkPDFDevice_DEFINED
(...skipping 13 matching lines...) Expand all
24 24
25 class SkPDFArray; 25 class SkPDFArray;
26 class SkPDFCanon; 26 class SkPDFCanon;
27 class SkPDFDevice; 27 class SkPDFDevice;
28 class SkPDFDict; 28 class SkPDFDict;
29 class SkPDFFont; 29 class SkPDFFont;
30 class SkPDFFormXObject; 30 class SkPDFFormXObject;
31 class SkPDFGlyphSetMap; 31 class SkPDFGlyphSetMap;
32 class SkPDFGraphicState; 32 class SkPDFGraphicState;
33 class SkPDFObject; 33 class SkPDFObject;
34 class SkPDFResourceDict;
35 class SkPDFShader; 34 class SkPDFShader;
36 class SkPDFStream; 35 class SkPDFStream;
37 class SkRRect; 36 class SkRRect;
38 37
39 // Private classes. 38 // Private classes.
40 struct ContentEntry; 39 struct ContentEntry;
41 struct GraphicStateEntry; 40 struct GraphicStateEntry;
42 struct NamedDestination; 41 struct NamedDestination;
43 42
44 /** \class SkPDFDevice 43 /** \class SkPDFDevice
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 * mode is used, like SrcIn, Clear, etc, the margin content will get 131 * mode is used, like SrcIn, Clear, etc, the margin content will get
133 * clipped. A simple way to avoid the bug is to always draw the margin 132 * clipped. A simple way to avoid the bug is to always draw the margin
134 * content last. 133 * content last.
135 */ 134 */
136 void setDrawingArea(DrawingArea drawingArea); 135 void setDrawingArea(DrawingArea drawingArea);
137 136
138 // PDF specific methods. 137 // PDF specific methods.
139 138
140 /** Create the resource dictionary for this device. 139 /** Create the resource dictionary for this device.
141 */ 140 */
142 SkPDFResourceDict* createResourceDict() const; 141 SkPDFDict* createResourceDict() const;
143 142
144 /** Get the fonts used on this device. 143 /** Get the fonts used on this device.
145 */ 144 */
146 const SkTDArray<SkPDFFont*>& getFontResources() const; 145 const SkTDArray<SkPDFFont*>& getFontResources() const;
147 146
148 /** Add our named destinations to the supplied dictionary. 147 /** Add our named destinations to the supplied dictionary.
149 * @param dict Dictionary to add destinations to. 148 * @param dict Dictionary to add destinations to.
150 * @param page The PDF object representing the page for this device. 149 * @param page The PDF object representing the page for this device.
151 */ 150 */
152 void appendDestinations(SkPDFDict* dict, SkPDFObject* page) const; 151 void appendDestinations(SkPDFDict* dict, SkPDFObject* page) const;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 309
311 typedef SkBaseDevice INHERITED; 310 typedef SkBaseDevice INHERITED;
312 311
313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 312 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
314 // an SkPDFDevice 313 // an SkPDFDevice
315 //friend class SkDocument_PDF; 314 //friend class SkDocument_PDF;
316 //friend class SkPDFImageShader; 315 //friend class SkPDFImageShader;
317 }; 316 };
318 317
319 #endif 318 #endif
OLDNEW
« no previous file with comments | « src/doc/SkDocument_PDF.cpp ('k') | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698