| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
| 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 | 8 |
| 9 #ifndef SkPDFGraphicState_DEFINED | 9 #ifndef SkPDFGraphicState_DEFINED |
| 10 #define SkPDFGraphicState_DEFINED | 10 #define SkPDFGraphicState_DEFINED |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 public: | 25 public: |
| 26 enum SkPDFSMaskMode { | 26 enum SkPDFSMaskMode { |
| 27 kAlpha_SMaskMode, | 27 kAlpha_SMaskMode, |
| 28 kLuminosity_SMaskMode | 28 kLuminosity_SMaskMode |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 // Override emitObject so that we can populate the dictionary on | 31 // Override emitObject so that we can populate the dictionary on |
| 32 // demand. | 32 // demand. |
| 33 void emitObject(SkWStream* stream, | 33 void emitObject(SkWStream* stream, |
| 34 const SkPDFObjNumMap& objNumMap, | 34 const SkPDFObjNumMap& objNumMap) const override; |
| 35 const SkPDFSubstituteMap& substitutes) const override; | |
| 36 | 35 |
| 37 /** Get the graphic state for the passed SkPaint. The reference count of | 36 /** Get the graphic state for the passed SkPaint. The reference count of |
| 38 * the object is incremented and it is the caller's responsibility to | 37 * the object is incremented and it is the caller's responsibility to |
| 39 * unreference it when done. This is needed to accommodate the weak | 38 * unreference it when done. This is needed to accommodate the weak |
| 40 * reference pattern used when the returned object is new and has no | 39 * reference pattern used when the returned object is new and has no |
| 41 * other references. | 40 * other references. |
| 42 * @param paint The SkPaint to emulate. | 41 * @param paint The SkPaint to emulate. |
| 43 */ | 42 */ |
| 44 static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon, | 43 static SkPDFGraphicState* GetGraphicStateForPaint(SkPDFCanon* canon, |
| 45 const SkPaint& paint); | 44 const SkPaint& paint); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 const uint8_t fStrokeCap; // SkPaint::Cap | 71 const uint8_t fStrokeCap; // SkPaint::Cap |
| 73 const uint8_t fStrokeJoin; // SkPaint::Join | 72 const uint8_t fStrokeJoin; // SkPaint::Join |
| 74 const uint8_t fMode; // SkXfermode::Mode | 73 const uint8_t fMode; // SkXfermode::Mode |
| 75 | 74 |
| 76 SkPDFGraphicState(const SkPaint&); | 75 SkPDFGraphicState(const SkPaint&); |
| 77 | 76 |
| 78 typedef SkPDFDict INHERITED; | 77 typedef SkPDFDict INHERITED; |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 #endif | 80 #endif |
| OLD | NEW |