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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 public: | 30 public: |
31 enum SkPDFSMaskMode { | 31 enum SkPDFSMaskMode { |
32 kAlpha_SMaskMode, | 32 kAlpha_SMaskMode, |
33 kLuminosity_SMaskMode | 33 kLuminosity_SMaskMode |
34 }; | 34 }; |
35 | 35 |
36 virtual ~SkPDFGraphicState(); | 36 virtual ~SkPDFGraphicState(); |
37 | 37 |
38 // Override emitObject so that we can populate the dictionary on | 38 // Override emitObject so that we can populate the dictionary on |
39 // demand. | 39 // demand. |
40 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog); | 40 virtual void emitObject(SkWStream* stream, |
| 41 const SkPDFObjNumMap& objNumMap, |
| 42 const SkPDFSubstituteMap& substitutes); |
41 | 43 |
42 /** Get the graphic state for the passed SkPaint. The reference count of | 44 /** Get the graphic state for the passed SkPaint. The reference count of |
43 * the object is incremented and it is the caller's responsibility to | 45 * the object is incremented and it is the caller's responsibility to |
44 * unreference it when done. This is needed to accommodate the weak | 46 * unreference it when done. This is needed to accommodate the weak |
45 * reference pattern used when the returned object is new and has no | 47 * reference pattern used when the returned object is new and has no |
46 * other references. | 48 * other references. |
47 * @param paint The SkPaint to emulate. | 49 * @param paint The SkPaint to emulate. |
48 */ | 50 */ |
49 static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon, | 51 static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon, |
50 const SkPaint& paint); | 52 const SkPaint& paint); |
(...skipping 28 matching lines...) Expand all Loading... |
79 | 81 |
80 SkPDFGraphicState(); | 82 SkPDFGraphicState(); |
81 SkPDFGraphicState(const SkPaint& paint); | 83 SkPDFGraphicState(const SkPaint& paint); |
82 | 84 |
83 void populateDict(); | 85 void populateDict(); |
84 | 86 |
85 typedef SkPDFDict INHERITED; | 87 typedef SkPDFDict INHERITED; |
86 }; | 88 }; |
87 | 89 |
88 #endif | 90 #endif |
OLD | NEW |