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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
109 */ | 109 */ |
110 static SkString* RegionToString(const SkRegion& region); | 110 static SkString* RegionToString(const SkRegion& region); |
111 | 111 |
112 /** | 112 /** |
113 Returns a string representation of the SkCanvas::SaveFlags enum. | 113 Returns a string representation of the SkCanvas::SaveLayerFlags enum. |
114 @param flags SkCanvas::SaveFlags enum | 114 @param flags SkCanvas::SaveLayerFlags enum |
115 */ | 115 */ |
116 static SkString* SaveFlagsToString(SkCanvas::SaveFlags flags); | 116 static SkString* SaveLayerFlagsToString(uint32_t saveLayerFlags); |
117 | 117 |
118 /** | 118 /** |
119 Returns a string representation of an SkScalar with the text parameter | 119 Returns a string representation of an SkScalar with the text parameter |
120 at the front of the string. | 120 at the front of the string. |
121 @param x SkScalar | 121 @param x SkScalar |
122 @param text | 122 @param text |
123 */ | 123 */ |
124 static SkString* ScalarToString(SkScalar x, const char* text); | 124 static SkString* ScalarToString(SkScalar x, const char* text); |
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 |