OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 7 |
8 #ifndef SkPDFDevice_DEFINED | 8 #ifndef SkPDFDevice_DEFINED |
9 #define SkPDFDevice_DEFINED | 9 #define SkPDFDevice_DEFINED |
10 | 10 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 //////////////////////////////////////////////////////////////////////////// | 269 //////////////////////////////////////////////////////////////////////////// |
270 | 270 |
271 SkPDFDevice(SkISize pageSize, | 271 SkPDFDevice(SkISize pageSize, |
272 SkScalar rasterDpi, | 272 SkScalar rasterDpi, |
273 SkPDFDocument* doc, | 273 SkPDFDocument* doc, |
274 bool flip); | 274 bool flip); |
275 | 275 |
276 ContentEntry* getLastContentEntry(); | 276 ContentEntry* getLastContentEntry(); |
277 void setLastContentEntry(ContentEntry* contentEntry); | 277 void setLastContentEntry(ContentEntry* contentEntry); |
278 | 278 |
279 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; | 279 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*, |
| 280 SkRasterCanvasLayerAllocator*) override; |
280 | 281 |
281 void init(); | 282 void init(); |
282 void cleanUp(bool clearFontUsage); | 283 void cleanUp(bool clearFontUsage); |
283 SkPDFFormXObject* createFormXObjectFromDevice(); | 284 SkPDFFormXObject* createFormXObjectFromDevice(); |
284 | 285 |
285 void drawFormXObjectWithMask(int xObjectIndex, | 286 void drawFormXObjectWithMask(int xObjectIndex, |
286 SkPDFFormXObject* mask, | 287 SkPDFFormXObject* mask, |
287 const SkClipStack* clipStack, | 288 const SkClipStack* clipStack, |
288 const SkRegion& clipRegion, | 289 const SkRegion& clipRegion, |
289 SkXfermode::Mode mode, | 290 SkXfermode::Mode mode, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 338 |
338 typedef SkBaseDevice INHERITED; | 339 typedef SkBaseDevice INHERITED; |
339 | 340 |
340 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 341 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
341 // an SkPDFDevice | 342 // an SkPDFDevice |
342 //friend class SkDocument_PDF; | 343 //friend class SkDocument_PDF; |
343 //friend class SkPDFImageShader; | 344 //friend class SkPDFImageShader; |
344 }; | 345 }; |
345 | 346 |
346 #endif | 347 #endif |
OLD | NEW |