| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfBasics | 1 #ifndef __DEFINED__SkPdfBasics |
| 2 #define __DEFINED__SkPdfBasics | 2 #define __DEFINED__SkPdfBasics |
| 3 | 3 |
| 4 #include "podofo.h" | 4 #include "podofo.h" |
| 5 using namespace PoDoFo; | 5 using namespace PoDoFo; |
| 6 | 6 |
| 7 #include "SkCanvas.h" |
| 8 #include "SkPaint.h" |
| 9 |
| 7 #include <iostream> | 10 #include <iostream> |
| 8 #include <cstdio> | 11 #include <cstdio> |
| 9 #include <stack> | 12 #include <stack> |
| 10 | 13 |
| 11 //#define PDF_TRACE | 14 //#define PDF_TRACE |
| 12 //#define PDF_TRACE_DIFF_IN_PNG | 15 //#define PDF_TRACE_DIFF_IN_PNG |
| 13 //#define PDF_DEBUG_NO_CLIPING | 16 //#define PDF_DEBUG_NO_CLIPING |
| 14 //#define PDF_DEBUG_NO_PAGE_CLIPING | 17 //#define PDF_DEBUG_NO_PAGE_CLIPING |
| 15 //#define PDF_DEBUG_3X | 18 //#define PDF_DEBUG_3X |
| 16 | 19 |
| 17 class SkPdfFont; | 20 class SkPdfFont; |
| 18 class SkPdfDoc; | 21 class SkPdfDoc; |
| 22 class SkPdfObject; |
| 23 class SkPdfResourceDictionary; |
| 19 | 24 |
| 20 // TODO(edisonn): better class design. | 25 // TODO(edisonn): better class design. |
| 21 struct PdfColorOperator { | 26 struct PdfColorOperator { |
| 22 std::string fColorSpace; // TODO(edisonn): use SkString | 27 std::string fColorSpace; // TODO(edisonn): use SkString |
| 23 SkColor fColor; | 28 SkColor fColor; |
| 24 double fOpacity; // ca or CA | 29 double fOpacity; // ca or CA |
| 25 // TODO(edisonn): add here other color space options. | 30 // TODO(edisonn): add here other color space options. |
| 26 | 31 |
| 27 void setRGBColor(SkColor color) { | 32 void setRGBColor(SkColor color) { |
| 28 // TODO(edisonn): ASSERT DeviceRGB is the color space. | 33 // TODO(edisonn): ASSERT DeviceRGB is the color space. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 kPartial_PdfResult, | 132 kPartial_PdfResult, |
| 128 kNYI_PdfResult, | 133 kNYI_PdfResult, |
| 129 kIgnoreError_PdfResult, | 134 kIgnoreError_PdfResult, |
| 130 kError_PdfResult, | 135 kError_PdfResult, |
| 131 kUnsupported_PdfResult, | 136 kUnsupported_PdfResult, |
| 132 | 137 |
| 133 kCount_PdfResult | 138 kCount_PdfResult |
| 134 }; | 139 }; |
| 135 | 140 |
| 136 #endif // __DEFINED__SkPdfBasics | 141 #endif // __DEFINED__SkPdfBasics |
| OLD | NEW |