| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
| 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 | 8 |
| 9 #ifndef SkPDFFormXObject_DEFINED | 9 #ifndef SkPDFFormXObject_DEFINED |
| 10 #define SkPDFFormXObject_DEFINED | 10 #define SkPDFFormXObject_DEFINED |
| 11 | 11 |
| 12 #include "SkPDFStream.h" | 12 #include "SkPDFStream.h" |
| 13 #include "SkPDFTypes.h" | |
| 14 #include "SkRect.h" | |
| 15 #include "SkRefCnt.h" | |
| 16 #include "SkString.h" | |
| 17 | 13 |
| 18 class SkMatrix; | 14 class SkPDFArray; |
| 19 class SkPDFDevice; | 15 class SkPDFDevice; |
| 20 class SkPDFObjNumMap; | 16 class SkPDFDict; |
| 17 struct SkRect; |
| 21 | 18 |
| 22 /** \class SkPDFFormXObject | 19 /** \class SkPDFFormXObject |
| 23 | 20 |
| 24 A form XObject; a self contained description of graphics objects. A form | 21 A form XObject; a self contained description of graphics objects. A form |
| 25 XObject is basically a page object with slightly different syntax, that | 22 XObject is basically a page object with slightly different syntax, that |
| 26 can be drawn onto a page. | 23 can be drawn onto a page. |
| 27 */ | 24 */ |
| 28 | 25 |
| 29 // The caller could keep track of the form XObjects it creates and | 26 // The caller could keep track of the form XObjects it creates and |
| 30 // canonicalize them, but the Skia API doesn't provide enough context to | 27 // canonicalize them, but the Skia API doesn't provide enough context to |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 SkRect bbox, | 41 SkRect bbox, |
| 45 SkPDFDict* resourceDict); | 42 SkPDFDict* resourceDict); |
| 46 virtual ~SkPDFFormXObject(); | 43 virtual ~SkPDFFormXObject(); |
| 47 | 44 |
| 48 private: | 45 private: |
| 49 void init(const char* colorSpace, | 46 void init(const char* colorSpace, |
| 50 SkPDFDict* resourceDict, SkPDFArray* bbox); | 47 SkPDFDict* resourceDict, SkPDFArray* bbox); |
| 51 }; | 48 }; |
| 52 | 49 |
| 53 #endif | 50 #endif |
| OLD | NEW |