| 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 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) SK_OVERRIDE; | 238 // override from SkBaseDevice |
| 239 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; |
| 239 | 240 |
| 240 void init(); | 241 void init(); |
| 241 void cleanUp(bool clearFontUsage); | 242 void cleanUp(bool clearFontUsage); |
| 242 SkPDFFormXObject* createFormXObjectFromDevice(); | 243 SkPDFFormXObject* createFormXObjectFromDevice(); |
| 243 | 244 |
| 244 void drawFormXObjectWithMask(int xObjectIndex, | 245 void drawFormXObjectWithMask(int xObjectIndex, |
| 245 SkPDFFormXObject* mask, | 246 SkPDFFormXObject* mask, |
| 246 const SkClipStack* clipStack, | 247 const SkClipStack* clipStack, |
| 247 const SkRegion& clipRegion, | 248 const SkRegion& clipRegion, |
| 248 SkXfermode::Mode mode, | 249 SkXfermode::Mode mode, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 309 |
| 309 typedef SkBaseDevice INHERITED; | 310 typedef SkBaseDevice INHERITED; |
| 310 | 311 |
| 311 // 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 |
| 312 // an SkPDFDevice | 313 // an SkPDFDevice |
| 313 //friend class SkDocument_PDF; | 314 //friend class SkDocument_PDF; |
| 314 //friend class SkPDFImageShader; | 315 //friend class SkPDFImageShader; |
| 315 }; | 316 }; |
| 316 | 317 |
| 317 #endif | 318 #endif |
| OLD | NEW |