OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
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 SKOBJECTPARSER_H_ | 8 #ifndef SKOBJECTPARSER_H_ |
9 #define SKOBJECTPARSER_H_ | 9 #define SKOBJECTPARSER_H_ |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 /** | 83 /** |
84 Returns a string representation of the SkCanvas PointMode enum. | 84 Returns a string representation of the SkCanvas PointMode enum. |
85 */ | 85 */ |
86 static SkString* PointModeToString(SkCanvas::PointMode mode); | 86 static SkString* PointModeToString(SkCanvas::PointMode mode); |
87 | 87 |
88 /** | 88 /** |
89 Returns a string representation of the SkRects coordinates. | 89 Returns a string representation of the SkRects coordinates. |
90 @param rect SkRect | 90 @param rect SkRect |
91 */ | 91 */ |
92 static SkString* RectToString(const SkRect& rect, const char* title = NULL); | 92 static SkString* RectToString(const SkRect& rect, const char* title = nullpt
r); |
93 | 93 |
94 /** | 94 /** |
95 Returns a string representation of an SkRRect. | 95 Returns a string representation of an SkRRect. |
96 @param rrect SkRRect | 96 @param rrect SkRRect |
97 */ | 97 */ |
98 static SkString* RRectToString(const SkRRect& rrect, const char* title = NUL
L); | 98 static SkString* RRectToString(const SkRRect& rrect, const char* title = nul
lptr); |
99 | 99 |
100 /** | 100 /** |
101 Returns a string representation of the SkRegion enum. | 101 Returns a string representation of the SkRegion enum. |
102 @param op SkRegion::op enum | 102 @param op SkRegion::op enum |
103 */ | 103 */ |
104 static SkString* RegionOpToString(SkRegion::Op op); | 104 static SkString* RegionOpToString(SkRegion::Op op); |
105 | 105 |
106 /** | 106 /** |
107 Returns a string representation of the SkRegion. | 107 Returns a string representation of the SkRegion. |
108 @param region SkRegion | 108 @param region SkRegion |
(...skipping 16 matching lines...) Expand all Loading... |
125 | 125 |
126 /** | 126 /** |
127 Returns a string representation of the char pointer passed in. | 127 Returns a string representation of the char pointer passed in. |
128 @param text const void* that will be cast to a char* | 128 @param text const void* that will be cast to a char* |
129 */ | 129 */ |
130 static SkString* TextToString(const void* text, size_t byteLength, | 130 static SkString* TextToString(const void* text, size_t byteLength, |
131 SkPaint::TextEncoding encoding); | 131 SkPaint::TextEncoding encoding); |
132 }; | 132 }; |
133 | 133 |
134 #endif | 134 #endif |
OLD | NEW |