| OLD | NEW | 
|---|
| 1 #include "SkPdfBasics.h" | 1 #include "SkPdfBasics.h" | 
| 2 #include "SkPdfNativeTokenizer.h" | 2 #include "SkPdfNativeTokenizer.h" | 
| 3 | 3 | 
| 4 #include "SkDashPathEffect.h" | 4 #include "SkDashPathEffect.h" | 
| 5 | 5 | 
| 6 PdfContext::PdfContext(SkNativeParsedPDF* doc) | 6 PdfContext::PdfContext(SkNativeParsedPDF* doc) | 
| 7     : fPdfDoc(doc) | 7     : fPdfDoc(doc) | 
| 8     , fTmpPageAllocator(new SkPdfAllocator()) { | 8     , fTmpPageAllocator(new SkPdfAllocator()) { | 
| 9 } | 9 } | 
| 10 | 10 | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21 | 21 | 
| 22     // TODO(edisonn): get this from pdfContext->options, | 22     // TODO(edisonn): get this from pdfContext->options, | 
| 23     // or pdfContext->addPaintOptions(&paint); | 23     // or pdfContext->addPaintOptions(&paint); | 
| 24     paint->setAntiAlias(true); | 24     paint->setAntiAlias(true); | 
| 25 | 25 | 
| 26     // TODO(edisonn): miter, ... | 26     // TODO(edisonn): miter, ... | 
| 27     if (stroking) { | 27     if (stroking) { | 
| 28         paint->setStrokeWidth(SkDoubleToScalar(fLineWidth)); | 28         paint->setStrokeWidth(SkDoubleToScalar(fLineWidth)); | 
| 29         // TODO(edisonn): perf, two sets of allocs, create SkDashPathEffect cons
    tr that takes ownership | 29         // TODO(edisonn): perf, two sets of allocs, create SkDashPathEffect cons
    tr that takes ownership | 
| 30         // of the intervals | 30         // of the intervals | 
| 31         if (fDashArrayLength > 0 && fDashPhase > 0) { | 31         if (fDashArrayLength > 0) { | 
| 32             paint->setPathEffect(new SkDashPathEffect(fDashArray, fDashArrayLeng
    th, fDashPhase))->unref(); | 32             paint->setPathEffect(new SkDashPathEffect(fDashArray, fDashArrayLeng
    th, fDashPhase))->unref(); | 
| 33         } | 33         } | 
| 34     } | 34     } | 
|  | 35 | 
|  | 36     // TODO(edisonn): NYI multiple blend modes | 
|  | 37     if (fBlendModesLength == 1 && fBlendModes[0] != SkXfermode::kSrc_Mode) { | 
|  | 38         paint->setXfermodeMode(fBlendModes[0]); | 
|  | 39     } | 
| 35 } | 40 } | 
| OLD | NEW | 
|---|