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 |
11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
12 #include "SkString.h" | 12 #include "SkString.h" |
13 | 13 |
14 /** \class SkObjectParser | 14 /** \class SkObjectParser |
15 | 15 |
16 The ObjectParser is used to return string information about parameters | 16 The ObjectParser is used to return string information about parameters |
17 in each draw command. | 17 in each draw command. |
18 */ | 18 */ |
19 class SkObjectParser { | 19 class SkObjectParser { |
20 public: | 20 public: |
21 | 21 |
22 /** | 22 /** |
23 Returns a string about a bitmaps bounds and config. | 23 Returns a string about a bitmaps bounds and colortype. |
24 @param bitmap SkBitmap | 24 @param bitmap SkBitmap |
25 */ | 25 */ |
26 static SkString* BitmapToString(const SkBitmap& bitmap); | 26 static SkString* BitmapToString(const SkBitmap& bitmap); |
27 | 27 |
28 /** | 28 /** |
29 Returns a string representation of a boolean. | 29 Returns a string representation of a boolean. |
30 @param doAA boolean | 30 @param doAA boolean |
31 */ | 31 */ |
32 static SkString* BoolToString(bool doAA); | 32 static SkString* BoolToString(bool doAA); |
33 | 33 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 /** | 120 /** |
121 Returns a string representation of the char pointer passed in. | 121 Returns a string representation of the char pointer passed in. |
122 @param text const void* that will be cast to a char* | 122 @param text const void* that will be cast to a char* |
123 */ | 123 */ |
124 static SkString* TextToString(const void* text, size_t byteLength, | 124 static SkString* TextToString(const void* text, size_t byteLength, |
125 SkPaint::TextEncoding encoding); | 125 SkPaint::TextEncoding encoding); |
126 }; | 126 }; |
127 | 127 |
128 #endif | 128 #endif |
OLD | NEW |