OLD | NEW |
| 1 /* |
| 2 * Copyright 2013 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
1 #include "SkPdfGraphicsState.h" | 8 #include "SkPdfGraphicsState.h" |
2 #include "SkPdfNativeTokenizer.h" | 9 #include "SkPdfNativeTokenizer.h" |
3 | 10 |
4 #include "SkDashPathEffect.h" | 11 #include "SkDashPathEffect.h" |
5 | 12 |
6 SkPdfContext::SkPdfContext(SkPdfNativeDoc* doc) | 13 SkPdfContext::SkPdfContext(SkPdfNativeDoc* doc) |
7 : fPdfDoc(doc) | 14 : fPdfDoc(doc) |
8 , fTmpPageAllocator(new SkPdfAllocator()) { | 15 , fTmpPageAllocator(new SkPdfAllocator()) { |
9 } | 16 } |
10 | 17 |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 41 } |
35 | 42 |
36 // TODO(edisonn): NYI multiple blend modes | 43 // TODO(edisonn): NYI multiple blend modes |
37 if (fBlendModesLength == 1 && fBlendModes[0] != SkXfermode::kSrc_Mode) { | 44 if (fBlendModesLength == 1 && fBlendModes[0] != SkXfermode::kSrc_Mode) { |
38 paint->setXfermodeMode(fBlendModes[0]); | 45 paint->setXfermodeMode(fBlendModes[0]); |
39 } | 46 } |
40 | 47 |
41 //paint->setStrokeMiter(SkDoubleToScalar(fMiterLimit)); | 48 //paint->setStrokeMiter(SkDoubleToScalar(fMiterLimit)); |
42 // TODO(edisonn): impl cap and join | 49 // TODO(edisonn): impl cap and join |
43 } | 50 } |
OLD | NEW |