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 "SkTemplates.h" | 15 #include "SkTemplates.h" |
16 #include "SkThread.h" | |
17 | 16 |
18 class SkPDFFormXObject; | 17 class SkPDFFormXObject; |
19 | 18 |
20 /** \class SkPDFGraphicState | 19 /** \class SkPDFGraphicState |
21 SkPaint objects roughly correspond to graphic state dictionaries that can | 20 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 | 21 be installed. So that a given dictionary is only output to the pdf file |
23 once, we want to canonicalize them. Static methods in this class manage | 22 once, we want to canonicalize them. Static methods in this class manage |
24 a weakly referenced set of SkPDFGraphicState objects: when the last | 23 a weakly referenced set of SkPDFGraphicState objects: when the last |
25 reference to a SkPDFGraphicState is removed, it removes itself from the | 24 reference to a SkPDFGraphicState is removed, it removes itself from the |
26 static set of objects. | 25 static set of objects. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 80 |
82 SkPDFGraphicState(); | 81 SkPDFGraphicState(); |
83 SkPDFGraphicState(SkPDFCanon* canon, const SkPaint& paint); | 82 SkPDFGraphicState(SkPDFCanon* canon, const SkPaint& paint); |
84 | 83 |
85 void populateDict(); | 84 void populateDict(); |
86 | 85 |
87 typedef SkPDFDict INHERITED; | 86 typedef SkPDFDict INHERITED; |
88 }; | 87 }; |
89 | 88 |
90 #endif | 89 #endif |
OLD | NEW |