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

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

Issue 1676843002: Make SkPaint movable. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 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 #ifndef SkPaint_DEFINED 8 #ifndef SkPaint_DEFINED
9 #define SkPaint_DEFINED 9 #define SkPaint_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 /** \class SkPaint 45 /** \class SkPaint
46 46
47 The SkPaint class holds the style and color information about how to draw 47 The SkPaint class holds the style and color information about how to draw
48 geometries, text and bitmaps. 48 geometries, text and bitmaps.
49 */ 49 */
50 50
51 class SK_API SkPaint { 51 class SK_API SkPaint {
52 public: 52 public:
53 SkPaint(); 53 SkPaint();
54 SkPaint(const SkPaint& paint); 54 SkPaint(const SkPaint& paint);
55 SkPaint(SkPaint&& paint);
55 ~SkPaint(); 56 ~SkPaint();
56 57
57 SkPaint& operator=(const SkPaint&); 58 SkPaint& operator=(const SkPaint&);
59 SkPaint& operator=(SkPaint&&);
58 60
59 /** operator== may give false negatives: two paints that draw equivalently 61 /** operator== may give false negatives: two paints that draw equivalently
60 may return false. It will never give false positives: two paints that 62 may return false. It will never give false positives: two paints that
61 are not equivalent always return false. 63 are not equivalent always return false.
62 */ 64 */
63 SK_API friend bool operator==(const SkPaint& a, const SkPaint& b); 65 SK_API friend bool operator==(const SkPaint& a, const SkPaint& b);
64 friend bool operator!=(const SkPaint& a, const SkPaint& b) { 66 friend bool operator!=(const SkPaint& a, const SkPaint& b) {
65 return !(a == b); 67 return !(a == b);
66 } 68 }
67 69
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 friend class GrStencilAndCoverTextContext; 1089 friend class GrStencilAndCoverTextContext;
1088 friend class GrPathRendering; 1090 friend class GrPathRendering;
1089 friend class GrTextUtils; 1091 friend class GrTextUtils;
1090 friend class GrGLPathRendering; 1092 friend class GrGLPathRendering;
1091 friend class SkScalerContext; 1093 friend class SkScalerContext;
1092 friend class SkTextToPathIter; 1094 friend class SkTextToPathIter;
1093 friend class SkCanonicalizePaint; 1095 friend class SkCanonicalizePaint;
1094 }; 1096 };
1095 1097
1096 #endif 1098 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698