| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 /* | 3 /* |
| 4 * Copyright 2006 The Android Open Source Project | 4 * Copyright 2006 The Android Open Source Project |
| 5 * | 5 * |
| 6 * Use of this source code is governed by a BSD-style license that can be | 6 * Use of this source code is governed by a BSD-style license that can be |
| 7 * found in the LICENSE file. | 7 * found in the LICENSE file. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // DEPRECATED -- use setFilterLevel instead | 60 // DEPRECATED -- use setFilterLevel instead |
| 61 kHighQualityDownsampleBitmap_Flag = 0x8000, // temporary flag | 61 kHighQualityDownsampleBitmap_Flag = 0x8000, // temporary flag |
| 62 }; | 62 }; |
| 63 public: | 63 public: |
| 64 SkPaint(); | 64 SkPaint(); |
| 65 SkPaint(const SkPaint& paint); | 65 SkPaint(const SkPaint& paint); |
| 66 ~SkPaint(); | 66 ~SkPaint(); |
| 67 | 67 |
| 68 SkPaint& operator=(const SkPaint&); | 68 SkPaint& operator=(const SkPaint&); |
| 69 | 69 |
| 70 SK_API friend bool operator==(const SkPaint& a, const SkPaint& b); | |
| 71 friend bool operator!=(const SkPaint& a, const SkPaint& b) { | |
| 72 return !(a == b); | |
| 73 } | |
| 74 | |
| 75 void flatten(SkFlattenableWriteBuffer&) const; | 70 void flatten(SkFlattenableWriteBuffer&) const; |
| 76 void unflatten(SkFlattenableReadBuffer&); | 71 void unflatten(SkFlattenableReadBuffer&); |
| 77 | 72 |
| 78 /** Restores the paint to its initial settings. | 73 /** Restores the paint to its initial settings. |
| 79 */ | 74 */ |
| 80 void reset(); | 75 void reset(); |
| 81 | 76 |
| 82 /** Specifies the level of hinting to be performed. These names are taken | 77 /** Specifies the level of hinting to be performed. These names are taken |
| 83 from the Gnome/Cairo names for the same. They are translated into | 78 from the Gnome/Cairo names for the same. They are translated into |
| 84 Freetype concepts the same as in cairo-ft-font.c: | 79 Freetype concepts the same as in cairo-ft-font.c: |
| (...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 #ifdef SK_BUILD_FOR_ANDROID | 1091 #ifdef SK_BUILD_FOR_ANDROID |
| 1097 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1092 SkPaintOptionsAndroid fPaintOptionsAndroid; |
| 1098 | 1093 |
| 1099 // In order for the == operator to work properly this must be the last field | 1094 // In order for the == operator to work properly this must be the last field |
| 1100 // in the struct so that we can do a memcmp to this field's offset. | 1095 // in the struct so that we can do a memcmp to this field's offset. |
| 1101 uint32_t fGenerationID; | 1096 uint32_t fGenerationID; |
| 1102 #endif | 1097 #endif |
| 1103 }; | 1098 }; |
| 1104 | 1099 |
| 1105 #endif | 1100 #endif |
| OLD | NEW |