| 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 23 matching lines...) Expand all Loading... |
| 34 kLuminosity_SMaskMode | 34 kLuminosity_SMaskMode |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 virtual ~SkPDFGraphicState(); | 37 virtual ~SkPDFGraphicState(); |
| 38 | 38 |
| 39 virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, | 39 virtual void getResources(const SkTSet<SkPDFObject*>& knownResourceObjects, |
| 40 SkTSet<SkPDFObject*>* newResourceObjects); | 40 SkTSet<SkPDFObject*>* newResourceObjects); |
| 41 | 41 |
| 42 // Override emitObject and getOutputSize so that we can populate | 42 // Override emitObject and getOutputSize so that we can populate |
| 43 // the dictionary on demand. | 43 // the dictionary on demand. |
| 44 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog, | 44 virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog); |
| 45 bool indirect); | |
| 46 virtual size_t getOutputSize(SkPDFCatalog* catalog, bool indirect); | 45 virtual size_t getOutputSize(SkPDFCatalog* catalog, bool indirect); |
| 47 | 46 |
| 48 /** Get the graphic state for the passed SkPaint. The reference count of | 47 /** Get the graphic state for the passed SkPaint. The reference count of |
| 49 * the object is incremented and it is the caller's responsibility to | 48 * the object is incremented and it is the caller's responsibility to |
| 50 * unreference it when done. This is needed to accommodate the weak | 49 * unreference it when done. This is needed to accommodate the weak |
| 51 * reference pattern used when the returned object is new and has no | 50 * reference pattern used when the returned object is new and has no |
| 52 * other references. | 51 * other references. |
| 53 * @param paint The SkPaint to emulate. | 52 * @param paint The SkPaint to emulate. |
| 54 */ | 53 */ |
| 55 static SkPDFGraphicState* GetGraphicStateForPaint(const SkPaint& paint); | 54 static SkPDFGraphicState* GetGraphicStateForPaint(const SkPaint& paint); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 101 |
| 103 void populateDict(); | 102 void populateDict(); |
| 104 | 103 |
| 105 static SkPDFObject* GetInvertFunction(); | 104 static SkPDFObject* GetInvertFunction(); |
| 106 | 105 |
| 107 static int Find(const SkPaint& paint); | 106 static int Find(const SkPaint& paint); |
| 108 typedef SkPDFDict INHERITED; | 107 typedef SkPDFDict INHERITED; |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 #endif | 110 #endif |
| OLD | NEW |