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

Side by Side Diff: src/utils/debugger/SkObjectParser.h

Issue 1311523003: Update debugger print out of drawImageRect information (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | « src/utils/debugger/SkDrawCommand.cpp ('k') | src/utils/debugger/SkObjectParser.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 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 colortype. 23 Returns a string about a bitmap's 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 about a image
30 @param image SkImage
31 */
32 static SkString* ImageToString(const SkImage* image);
33
34 /**
29 Returns a string representation of a boolean. 35 Returns a string representation of a boolean.
30 @param doAA boolean 36 @param doAA boolean
31 */ 37 */
32 static SkString* BoolToString(bool doAA); 38 static SkString* BoolToString(bool doAA);
33 39
34 /** 40 /**
35 Returns a string representation of the text pointer passed in. 41 Returns a string representation of the text pointer passed in.
36 */ 42 */
37 static SkString* CustomTextToString(const char* text); 43 static SkString* CustomTextToString(const char* text);
38 44
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 125
120 /** 126 /**
121 Returns a string representation of the char pointer passed in. 127 Returns a string representation of the char pointer passed in.
122 @param text const void* that will be cast to a char* 128 @param text const void* that will be cast to a char*
123 */ 129 */
124 static SkString* TextToString(const void* text, size_t byteLength, 130 static SkString* TextToString(const void* text, size_t byteLength,
125 SkPaint::TextEncoding encoding); 131 SkPaint::TextEncoding encoding);
126 }; 132 };
127 133
128 #endif 134 #endif
OLDNEW
« no previous file with comments | « src/utils/debugger/SkDrawCommand.cpp ('k') | src/utils/debugger/SkObjectParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698