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 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 size_t rowBytes) override { | 112 size_t rowBytes) override { |
113 return SkImageEncoder::EncodeData(info, pixels, rowBytes, | 113 return SkImageEncoder::EncodeData(info, pixels, rowBytes, |
114 SkImageEncoder::kPNG_Type, 100); | 114 SkImageEncoder::kPNG_Type, 100); |
115 } | 115 } |
116 }; | 116 }; |
117 | 117 |
118 // A helper for inserting a drawtext call into a SkTextBlobBuilder | 118 // A helper for inserting a drawtext call into a SkTextBlobBuilder |
119 void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const Sk
Paint& origPaint, | 119 void add_to_text_blob(SkTextBlobBuilder* builder, const char* text, const Sk
Paint& origPaint, |
120 SkScalar x, SkScalar y); | 120 SkScalar x, SkScalar y); |
121 | 121 |
| 122 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); |
| 123 |
| 124 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); |
| 125 |
| 126 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); |
| 127 |
122 } // namespace sk_tool_utils | 128 } // namespace sk_tool_utils |
123 | 129 |
124 #endif // sk_tool_utils_DEFINED | 130 #endif // sk_tool_utils_DEFINED |
OLD | NEW |