| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return 0 == memcmp(&fStrokeWidth, &rhs.fStrokeWidth, 12); | 63 return 0 == memcmp(&fStrokeWidth, &rhs.fStrokeWidth, 12); |
| 64 } | 64 } |
| 65 uint32_t hash() const { return SkOpts::hash(&fStrokeWidth, 12); } | 65 uint32_t hash() const { return SkOpts::hash(&fStrokeWidth, 12); } |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 const SkScalar fStrokeWidth; | 68 const SkScalar fStrokeWidth; |
| 69 const SkScalar fStrokeMiter; | 69 const SkScalar fStrokeMiter; |
| 70 const uint8_t fAlpha; | 70 const uint8_t fAlpha; |
| 71 const uint8_t fStrokeCap; // SkPaint::Cap | 71 const uint8_t fStrokeCap; // SkPaint::Cap |
| 72 const uint8_t fStrokeJoin; // SkPaint::Join | 72 const uint8_t fStrokeJoin; // SkPaint::Join |
| 73 const uint8_t fMode; // SkXfermode::Mode | 73 const uint8_t fMode; // SkBlendMode |
| 74 | 74 |
| 75 SkPDFGraphicState(const SkPaint&); | 75 SkPDFGraphicState(const SkPaint&); |
| 76 | 76 |
| 77 typedef SkPDFDict INHERITED; | 77 typedef SkPDFDict INHERITED; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif | 80 #endif |
| OLD | NEW |