OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 PassRefPtr<JSONObject> objectForSkPicture(const SkPicture&); | 103 PassRefPtr<JSONObject> objectForSkPicture(const SkPicture&); |
104 PassRefPtr<JSONObject> objectForRadius(const SkRRect& rrect, SkRRect::Corner
); | 104 PassRefPtr<JSONObject> objectForRadius(const SkRRect& rrect, SkRRect::Corner
); |
105 String rrectTypeName(SkRRect::Type); | 105 String rrectTypeName(SkRRect::Type); |
106 String radiusName(SkRRect::Corner); | 106 String radiusName(SkRRect::Corner); |
107 PassRefPtr<JSONObject> objectForSkRRect(const SkRRect&); | 107 PassRefPtr<JSONObject> objectForSkRRect(const SkRRect&); |
108 String fillTypeName(SkPath::FillType); | 108 String fillTypeName(SkPath::FillType); |
109 String convexityName(SkPath::Convexity); | 109 String convexityName(SkPath::Convexity); |
110 String verbName(SkPath::Verb); | 110 String verbName(SkPath::Verb); |
111 VerbParams segmentParams(SkPath::Verb); | 111 VerbParams segmentParams(SkPath::Verb); |
112 PassRefPtr<JSONObject> objectForSkPath(const SkPath&); | 112 PassRefPtr<JSONObject> objectForSkPath(const SkPath&); |
113 String configName(SkBitmap::Config); | 113 String colorTypeName(SkColorType); |
114 PassRefPtr<JSONObject> objectForBitmapData(const SkBitmap&); | 114 PassRefPtr<JSONObject> objectForBitmapData(const SkBitmap&); |
115 PassRefPtr<JSONObject> objectForSkBitmap(const SkBitmap&); | 115 PassRefPtr<JSONObject> objectForSkBitmap(const SkBitmap&); |
116 PassRefPtr<JSONObject> objectForSkShader(const SkShader&); | 116 PassRefPtr<JSONObject> objectForSkShader(const SkShader&); |
117 String stringForSkColor(const SkColor&); | 117 String stringForSkColor(const SkColor&); |
118 void appendFlagToString(String* flagsString, bool isSet, const String& name)
; | 118 void appendFlagToString(String* flagsString, bool isSet, const String& name)
; |
119 String stringForSkPaintFlags(const SkPaint&); | 119 String stringForSkPaintFlags(const SkPaint&); |
120 String filterLevelName(SkPaint::FilterLevel); | 120 String filterLevelName(SkPaint::FilterLevel); |
121 String textAlignName(SkPaint::Align); | 121 String textAlignName(SkPaint::Align); |
122 String strokeCapName(SkPaint::Cap); | 122 String strokeCapName(SkPaint::Cap); |
123 String strokeJoinName(SkPaint::Join); | 123 String strokeJoinName(SkPaint::Join); |
124 String styleName(SkPaint::Style); | 124 String styleName(SkPaint::Style); |
125 String textEncodingName(SkPaint::TextEncoding); | 125 String textEncodingName(SkPaint::TextEncoding); |
126 String hintingName(SkPaint::Hinting); | 126 String hintingName(SkPaint::Hinting); |
127 PassRefPtr<JSONObject> objectForSkPaint(const SkPaint&); | 127 PassRefPtr<JSONObject> objectForSkPaint(const SkPaint&); |
128 PassRefPtr<JSONArray> arrayForSkMatrix(const SkMatrix&); | 128 PassRefPtr<JSONArray> arrayForSkMatrix(const SkMatrix&); |
129 PassRefPtr<JSONArray> arrayForSkScalars(size_t n, const SkScalar scalars[]); | 129 PassRefPtr<JSONArray> arrayForSkScalars(size_t n, const SkScalar scalars[]); |
130 String regionOpName(SkRegion::Op); | 130 String regionOpName(SkRegion::Op); |
131 void translate(SkScalar dx, SkScalar dy); | 131 void translate(SkScalar dx, SkScalar dy); |
132 void scale(SkScalar scaleX, SkScalar scaleY); | 132 void scale(SkScalar scaleX, SkScalar scaleY); |
133 void concat(const SkMatrix&); | 133 void concat(const SkMatrix&); |
134 String saveFlagsToString(SkCanvas::SaveFlags); | 134 String saveFlagsToString(SkCanvas::SaveFlags); |
135 String textEncodingCanonicalName(SkPaint::TextEncoding); | 135 String textEncodingCanonicalName(SkPaint::TextEncoding); |
136 String stringForUTFText(const void* text, size_t length, SkPaint::TextEncodi
ng); | 136 String stringForUTFText(const void* text, size_t length, SkPaint::TextEncodi
ng); |
137 String stringForText(const void* text, size_t byteLength, const SkPaint&); | 137 String stringForText(const void* text, size_t byteLength, const SkPaint&); |
138 }; | 138 }; |
139 | 139 |
140 } | 140 } |
141 | 141 |
142 #endif // LoggingCanvas_h | 142 #endif // LoggingCanvas_h |
OLD | NEW |