OLD | NEW |
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 //////////////////////////////////////////////////////////////////////////// | 228 //////////////////////////////////////////////////////////////////////////// |
229 | 229 |
230 SkPDFDevice(SkISize pageSize, | 230 SkPDFDevice(SkISize pageSize, |
231 SkScalar rasterDpi, | 231 SkScalar rasterDpi, |
232 SkPDFCanon* canon, | 232 SkPDFCanon* canon, |
233 bool flip); | 233 bool flip); |
234 | 234 |
235 ContentEntry* getLastContentEntry(); | 235 ContentEntry* getLastContentEntry(); |
236 void setLastContentEntry(ContentEntry* contentEntry); | 236 void setLastContentEntry(ContentEntry* contentEntry); |
237 | 237 |
238 // override from SkBaseDevice | 238 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) SK_OVERRIDE; |
239 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; | |
240 | 239 |
241 void init(); | 240 void init(); |
242 void cleanUp(bool clearFontUsage); | 241 void cleanUp(bool clearFontUsage); |
243 SkPDFFormXObject* createFormXObjectFromDevice(); | 242 SkPDFFormXObject* createFormXObjectFromDevice(); |
244 | 243 |
245 void drawFormXObjectWithMask(int xObjectIndex, | 244 void drawFormXObjectWithMask(int xObjectIndex, |
246 SkPDFFormXObject* mask, | 245 SkPDFFormXObject* mask, |
247 const SkClipStack* clipStack, | 246 const SkClipStack* clipStack, |
248 const SkRegion& clipRegion, | 247 const SkRegion& clipRegion, |
249 SkXfermode::Mode mode, | 248 SkXfermode::Mode mode, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 | 308 |
310 typedef SkBaseDevice INHERITED; | 309 typedef SkBaseDevice INHERITED; |
311 | 310 |
312 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 311 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
313 // an SkPDFDevice | 312 // an SkPDFDevice |
314 //friend class SkDocument_PDF; | 313 //friend class SkDocument_PDF; |
315 //friend class SkPDFImageShader; | 314 //friend class SkPDFImageShader; |
316 }; | 315 }; |
317 | 316 |
318 #endif | 317 #endif |
OLD | NEW |