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

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

Issue 953053002: SkPDF: remove SK_API on no-longer-public functions. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase: 2015-02-24 (Tuesday) 18:48:48 EST Created 5 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 | « no previous file | src/pdf/SkPDFDocument.h » ('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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 /** Sets the drawing area for the device. Subsequent draw calls are directed 128 /** Sets the drawing area for the device. Subsequent draw calls are directed
129 * to the specific drawing area (margin or content). The default drawing 129 * to the specific drawing area (margin or content). The default drawing
130 * area is the content drawing area. 130 * area is the content drawing area.
131 * 131 *
132 * Currently if margin content is drawn and then a complex (for PDF) xfer 132 * Currently if margin content is drawn and then a complex (for PDF) xfer
133 * mode is used, like SrcIn, Clear, etc, the margin content will get 133 * mode is used, like SrcIn, Clear, etc, the margin content will get
134 * clipped. A simple way to avoid the bug is to always draw the margin 134 * clipped. A simple way to avoid the bug is to always draw the margin
135 * content last. 135 * content last.
136 */ 136 */
137 SK_API void setDrawingArea(DrawingArea drawingArea); 137 void setDrawingArea(DrawingArea drawingArea);
138 138
139 // PDF specific methods. 139 // PDF specific methods.
140 140
141 /** Returns the resource dictionary for this device. 141 /** Returns the resource dictionary for this device.
142 */ 142 */
143 SK_API SkPDFResourceDict* getResourceDict(); 143 SkPDFResourceDict* getResourceDict();
144 144
145 /** Get the fonts used on this device. 145 /** Get the fonts used on this device.
146 */ 146 */
147 SK_API const SkTDArray<SkPDFFont*>& getFontResources() const; 147 const SkTDArray<SkPDFFont*>& getFontResources() const;
148 148
149 /** Add our named destinations to the supplied dictionary. 149 /** Add our named destinations to the supplied dictionary.
150 * @param dict Dictionary to add destinations to. 150 * @param dict Dictionary to add destinations to.
151 * @param page The PDF object representing the page for this device. 151 * @param page The PDF object representing the page for this device.
152 */ 152 */
153 void appendDestinations(SkPDFDict* dict, SkPDFObject* page); 153 void appendDestinations(SkPDFDict* dict, SkPDFObject* page);
154 154
155 /** Returns a copy of the media box for this device. The caller is required 155 /** Returns a copy of the media box for this device. The caller is required
156 * to unref() this when it is finished. 156 * to unref() this when it is finished.
157 */ 157 */
158 SK_API SkPDFArray* copyMediaBox() const; 158 SkPDFArray* copyMediaBox() const;
159 159
160 /** Get the annotations from this page, or NULL if there are none. 160 /** Get the annotations from this page, or NULL if there are none.
161 */ 161 */
162 SK_API SkPDFArray* getAnnotations() const { return fAnnotations; } 162 SkPDFArray* getAnnotations() const { return fAnnotations; }
163 163
164 /** Returns a SkStream with the page contents. The caller is responsible 164 /** Returns a SkStream with the page contents. The caller is responsible
165 for a deleting the returned value. 165 * for a deleting the returned value.
166 */ 166 */
167 SK_API SkStreamAsset* content() const; 167 SkStreamAsset* content() const;
168 168
169 /** Writes the page contents to the stream. */ 169 /** Writes the page contents to the stream. */
170 SK_API void writeContent(SkWStream*) const; 170 void writeContent(SkWStream*) const;
171 171
172 SK_API const SkMatrix& initialTransform() const { 172 const SkMatrix& initialTransform() const {
173 return fInitialTransform; 173 return fInitialTransform;
174 } 174 }
175 175
176 /** Returns a SkPDFGlyphSetMap which represents glyph usage of every font 176 /** Returns a SkPDFGlyphSetMap which represents glyph usage of every font
177 * that shows on this device. 177 * that shows on this device.
178 */ 178 */
179 const SkPDFGlyphSetMap& getFontGlyphUsage() const { 179 const SkPDFGlyphSetMap& getFontGlyphUsage() const {
180 return *(fFontGlyphUsage.get()); 180 return *(fFontGlyphUsage.get());
181 } 181 }
182 182
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 309
310 typedef SkBaseDevice INHERITED; 310 typedef SkBaseDevice INHERITED;
311 311
312 // 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
313 // an SkPDFDevice 313 // an SkPDFDevice
314 //friend class SkDocument_PDF; 314 //friend class SkDocument_PDF;
315 //friend class SkPDFImageShader; 315 //friend class SkPDFImageShader;
316 }; 316 };
317 317
318 #endif 318 #endif
OLDNEW
« no previous file with comments | « no previous file | src/pdf/SkPDFDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698