Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: include/core/SkPaint.h

Issue 21949007: Remove operator== from SkPaint (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | tests/PaintTest.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 return kMag2Max; 1080 return kMag2Max;
1086 } 1081 }
1087 1082
1088 friend class SkAutoGlyphCache; 1083 friend class SkAutoGlyphCache;
1089 friend class SkCanvas; 1084 friend class SkCanvas;
1090 friend class SkDraw; 1085 friend class SkDraw;
1091 friend class SkGraphics; // So Term() can be called. 1086 friend class SkGraphics; // So Term() can be called.
1092 friend class SkPDFDevice; 1087 friend class SkPDFDevice;
1093 friend class SkTextToPathIter; 1088 friend class SkTextToPathIter;
1094 friend class SkCanonicalizePaint; 1089 friend class SkCanonicalizePaint;
1090 friend class PaintEqualityHelper; // Defined in PaintTest.cpp
1095 1091
1096 #ifdef SK_BUILD_FOR_ANDROID 1092 #ifdef SK_BUILD_FOR_ANDROID
1097 SkPaintOptionsAndroid fPaintOptionsAndroid; 1093 SkPaintOptionsAndroid fPaintOptionsAndroid;
1098 1094
1099 // In order for the == operator to work properly this must be the last field 1095 // 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. 1096 // in the struct so that we can do a memcmp to this field's offset.
1101 uint32_t fGenerationID; 1097 uint32_t fGenerationID;
1102 #endif 1098 #endif
1103 }; 1099 };
1104 1100
1105 #endif 1101 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | tests/PaintTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698