| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 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 #ifndef SkPdfGraphicsState_DEFINED | 8 #ifndef SkPdfGraphicsState_DEFINED |
| 9 #define SkPdfGraphicsState_DEFINED | 9 #define SkPdfGraphicsState_DEFINED |
| 10 | 10 |
| 11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
| 12 #include "SkPaint.h" | 12 #include "SkPaint.h" |
| 13 #include "SkPath.h" |
| 13 #include "SkPdfConfig.h" | 14 #include "SkPdfConfig.h" |
| 14 #include "SkPdfUtils.h" | 15 #include "SkPdfUtils.h" |
| 15 | 16 |
| 16 class SkPdfFont; | 17 class SkPdfFont; |
| 17 class SkPdfNativeObject; | 18 class SkPdfNativeObject; |
| 18 class SkPdfResourceDictionary; | 19 class SkPdfResourceDictionary; |
| 19 class SkPdfSoftMaskDictionary; | 20 class SkPdfSoftMaskDictionary; |
| 20 | 21 |
| 21 /** \class SkPdfColorOperator | 22 /** \class SkPdfColorOperator |
| 22 * Operates on stroking or non-stroking properties. | 23 * Operates on stroking or non-stroking properties. |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 fBlendModesLength = 1; | 346 fBlendModesLength = 1; |
| 346 fBlendModes[0] = SkXfermode::kSrc_Mode; // PDF: Normal Blend mode | 347 fBlendModes[0] = SkXfermode::kSrc_Mode; // PDF: Normal Blend mode |
| 347 fSMask = NULL; | 348 fSMask = NULL; |
| 348 } | 349 } |
| 349 | 350 |
| 350 // TODO(edisonn): make two functions instead, stroking and non stoking, avoi
d branching | 351 // TODO(edisonn): make two functions instead, stroking and non stoking, avoi
d branching |
| 351 void applyGraphicsState(SkPaint* paint, bool stroking); | 352 void applyGraphicsState(SkPaint* paint, bool stroking); |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 #endif // SkPdfGraphicsState_DEFINED | 355 #endif // SkPdfGraphicsState_DEFINED |
| OLD | NEW |