OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 sk_tool_utils_DEFINED | 8 #ifndef sk_tool_utils_DEFINED |
9 #define sk_tool_utils_DEFINED | 9 #define sk_tool_utils_DEFINED |
10 | 10 |
11 #include "SkColor.h" | 11 #include "SkColor.h" |
12 #include "SkImageEncoder.h" | 12 #include "SkImageEncoder.h" |
13 #include "SkImageInfo.h" | 13 #include "SkImageInfo.h" |
14 #include "SkPixelSerializer.h" | 14 #include "SkPixelSerializer.h" |
15 #include "SkTypeface.h" | 15 #include "SkTypeface.h" |
16 | 16 |
17 class SkBitmap; | 17 class SkBitmap; |
18 class SkCanvas; | 18 class SkCanvas; |
19 class SkPaint; | 19 class SkPaint; |
| 20 class SkPath; |
20 class SkShader; | 21 class SkShader; |
21 class SkTestFont; | 22 class SkTestFont; |
22 class SkTextBlobBuilder; | 23 class SkTextBlobBuilder; |
23 | 24 |
24 namespace sk_tool_utils { | 25 namespace sk_tool_utils { |
25 | 26 |
26 const char* colortype_name(SkColorType); | 27 const char* colortype_name(SkColorType); |
27 | 28 |
28 /** | 29 /** |
29 * Map opaque colors from 8888 to 565. | 30 * Map opaque colors from 8888 to 565. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // A helper for inserting a drawtext call into a SkTextBlobBuilder | 127 // A helper for inserting a drawtext call into a SkTextBlobBuilder |
127 void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const Sk
Paint& origPaint, | 128 void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const Sk
Paint& origPaint, |
128 SkScalar x, SkScalar y); | 129 SkScalar x, SkScalar y); |
129 | 130 |
130 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); | 131 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); |
131 | 132 |
132 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); | 133 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); |
133 | 134 |
134 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); | 135 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); |
135 | 136 |
| 137 void make_big_path(SkPath& path); |
136 } // namespace sk_tool_utils | 138 } // namespace sk_tool_utils |
137 | 139 |
138 #endif // sk_tool_utils_DEFINED | 140 #endif // sk_tool_utils_DEFINED |
OLD | NEW |