| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfBasics | 1 #ifndef __DEFINED__SkPdfBasics |
| 2 #define __DEFINED__SkPdfBasics | 2 #define __DEFINED__SkPdfBasics |
| 3 | 3 |
| 4 #include "SkCanvas.h" | 4 #include "SkCanvas.h" |
| 5 #include "SkPaint.h" | 5 #include "SkPaint.h" |
| 6 #include "SkPdfConfig.h" | 6 #include "SkPdfConfig.h" |
| 7 | 7 |
| 8 #include <iostream> | 8 #include <iostream> |
| 9 #include <cstdio> | 9 #include <cstdio> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 fSkFont = NULL; | 343 fSkFont = NULL; |
| 344 fLineCap = 0; | 344 fLineCap = 0; |
| 345 fLineJoin = 0; | 345 fLineJoin = 0; |
| 346 fMiterLimit = 10.0; | 346 fMiterLimit = 10.0; |
| 347 fAphaConstant = 1.0; | 347 fAphaConstant = 1.0; |
| 348 fAlphaSource = false; | 348 fAlphaSource = false; |
| 349 fDashArrayLength = 0; | 349 fDashArrayLength = 0; |
| 350 fDashPhase = 0; | 350 fDashPhase = 0; |
| 351 fBlendModesLength = 1; | 351 fBlendModesLength = 1; |
| 352 fBlendModes[0] = SkXfermode::kSrc_Mode; // PDF: Normal Blend mode | 352 fBlendModes[0] = SkXfermode::kSrc_Mode; // PDF: Normal Blend mode |
| 353 fSMask = NULL; |
| 353 } | 354 } |
| 354 | 355 |
| 355 // TODO(edisonn): make two functons instead, stroking and non stoking, avoid
branching | 356 // TODO(edisonn): make two functons instead, stroking and non stoking, avoid
branching |
| 356 void applyGraphicsState(SkPaint* paint, bool stroking); | 357 void applyGraphicsState(SkPaint* paint, bool stroking); |
| 357 }; | 358 }; |
| 358 | 359 |
| 359 // TODO(edisonn): better class design. | 360 // TODO(edisonn): better class design. |
| 360 // TODO(edisonn): could we remove it? | 361 // TODO(edisonn): could we remove it? |
| 361 // TODO(edisonn): rename to SkPdfInlineImage | 362 // TODO(edisonn): rename to SkPdfInlineImage |
| 362 struct SkPdfInlineImage { | 363 struct SkPdfInlineImage { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 388 kPartial_PdfResult, | 389 kPartial_PdfResult, |
| 389 kNYI_PdfResult, | 390 kNYI_PdfResult, |
| 390 kIgnoreError_PdfResult, | 391 kIgnoreError_PdfResult, |
| 391 kError_PdfResult, | 392 kError_PdfResult, |
| 392 kUnsupported_PdfResult, | 393 kUnsupported_PdfResult, |
| 393 | 394 |
| 394 kCount_PdfResult | 395 kCount_PdfResult |
| 395 }; | 396 }; |
| 396 | 397 |
| 397 #endif // __DEFINED__SkPdfBasics | 398 #endif // __DEFINED__SkPdfBasics |
| OLD | NEW |