OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPDFGraphicState_DEFINED | 10 #ifndef SkPDFGraphicState_DEFINED |
11 #define SkPDFGraphicState_DEFINED | 11 #define SkPDFGraphicState_DEFINED |
12 | 12 |
13 #include "SkPaint.h" | 13 #include "SkPaint.h" |
14 #include "SkPDFTypes.h" | 14 #include "SkPDFTypes.h" |
15 #include "SkChecksum.h" | 15 #include "SkChecksum.h" |
16 | 16 |
17 class SkPDFCanon; | 17 class SkPDFCanon; |
18 class SkPDFFormXObject; | 18 class SkPDFFormXObject; |
19 | 19 |
20 /** \class SkPDFGraphicState | 20 /** \class SkPDFGraphicState |
21 SkPaint objects roughly correspond to graphic state dictionaries that can | 21 SkPaint objects roughly correspond to graphic state dictionaries that can |
22 be installed. So that a given dictionary is only output to the pdf file | 22 be installed. So that a given dictionary is only output to the pdf file |
23 once, we want to canonicalize them. | 23 once, we want to canonicalize them. |
24 */ | 24 */ |
25 class SkPDFGraphicState : public SkPDFObject { | 25 class SkPDFGraphicState final : public SkPDFObject { |
26 | 26 |
27 public: | 27 public: |
28 enum SkPDFSMaskMode { | 28 enum SkPDFSMaskMode { |
29 kAlpha_SMaskMode, | 29 kAlpha_SMaskMode, |
30 kLuminosity_SMaskMode | 30 kLuminosity_SMaskMode |
31 }; | 31 }; |
32 | 32 |
33 // Override emitObject so that we can populate the dictionary on | 33 // Override emitObject so that we can populate the dictionary on |
34 // demand. | 34 // demand. |
35 void emitObject(SkWStream* stream, | 35 void emitObject(SkWStream* stream, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 const uint8_t fStrokeCap; // SkPaint::Cap | 81 const uint8_t fStrokeCap; // SkPaint::Cap |
82 const uint8_t fStrokeJoin; // SkPaint::Join | 82 const uint8_t fStrokeJoin; // SkPaint::Join |
83 const uint8_t fMode; // SkXfermode::Mode | 83 const uint8_t fMode; // SkXfermode::Mode |
84 | 84 |
85 SkPDFGraphicState(const SkPaint&); | 85 SkPDFGraphicState(const SkPaint&); |
86 | 86 |
87 typedef SkPDFDict INHERITED; | 87 typedef SkPDFDict INHERITED; |
88 }; | 88 }; |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |