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

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

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 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
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
11 #ifndef SkPaint_DEFINED 11 #ifndef SkPaint_DEFINED
12 #define SkPaint_DEFINED 12 #define SkPaint_DEFINED
13 13
14 #include "SkColor.h" 14 #include "SkColor.h"
15 #include "SkDrawLooper.h" 15 #include "SkDrawLooper.h"
16 #include "SkMatrix.h" 16 #include "SkMatrix.h"
17 #include "SkXfermode.h" 17 #include "SkXfermode.h"
18 #ifdef SK_BUILD_FOR_ANDROID 18 #ifdef SK_BUILD_FOR_ANDROID
19 #include "SkPaintOptionsAndroid.h" 19 #include "SkPaintOptionsAndroid.h"
20 #endif 20 #endif
21 21
22 class SkAnnotation; 22 class SkAnnotation;
23 class SkAutoGlyphCache; 23 class SkAutoGlyphCache;
24 class SkColorFilter; 24 class SkColorFilter;
25 class SkDescriptor; 25 class SkDescriptor;
26 struct SkDeviceProperties; 26 struct SkDeviceProperties;
27 class SkFlattenableReadBuffer; 27 class SkReadBuffer;
28 class SkFlattenableWriteBuffer; 28 class SkWriteBuffer;
29 struct SkGlyph; 29 struct SkGlyph;
30 struct SkRect; 30 struct SkRect;
31 class SkGlyphCache; 31 class SkGlyphCache;
32 class SkImageFilter; 32 class SkImageFilter;
33 class SkMaskFilter; 33 class SkMaskFilter;
34 class SkPath; 34 class SkPath;
35 class SkPathEffect; 35 class SkPathEffect;
36 struct SkPoint; 36 struct SkPoint;
37 class SkRasterizer; 37 class SkRasterizer;
38 class SkShader; 38 class SkShader;
(...skipping 26 matching lines...) Expand all
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); 70 SK_API friend bool operator==(const SkPaint& a, const SkPaint& b);
71 friend bool operator!=(const SkPaint& a, const SkPaint& b) { 71 friend bool operator!=(const SkPaint& a, const SkPaint& b) {
72 return !(a == b); 72 return !(a == b);
73 } 73 }
74 74
75 void flatten(SkFlattenableWriteBuffer&) const; 75 void flatten(SkWriteBuffer&) const;
76 void unflatten(SkFlattenableReadBuffer&); 76 void unflatten(SkReadBuffer&);
77 77
78 /** Restores the paint to its initial settings. 78 /** Restores the paint to its initial settings.
79 */ 79 */
80 void reset(); 80 void reset();
81 81
82 /** Specifies the level of hinting to be performed. These names are taken 82 /** 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 83 from the Gnome/Cairo names for the same. They are translated into
84 Freetype concepts the same as in cairo-ft-font.c: 84 Freetype concepts the same as in cairo-ft-font.c:
85 kNo_Hinting -> FT_LOAD_NO_HINTING 85 kNo_Hinting -> FT_LOAD_NO_HINTING
86 kSlight_Hinting -> FT_LOAD_TARGET_LIGHT 86 kSlight_Hinting -> FT_LOAD_TARGET_LIGHT
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 #ifdef SK_BUILD_FOR_ANDROID 1079 #ifdef SK_BUILD_FOR_ANDROID
1080 SkPaintOptionsAndroid fPaintOptionsAndroid; 1080 SkPaintOptionsAndroid fPaintOptionsAndroid;
1081 1081
1082 // In order for the == operator to work properly this must be the last field 1082 // In order for the == operator to work properly this must be the last field
1083 // in the struct so that we can do a memcmp to this field's offset. 1083 // in the struct so that we can do a memcmp to this field's offset.
1084 uint32_t fGenerationID; 1084 uint32_t fGenerationID;
1085 #endif 1085 #endif
1086 }; 1086 };
1087 1087
1088 #endif 1088 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698