| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const char* platform_extra_config(const char* config); | 61 const char* platform_extra_config(const char* config); |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * Map serif, san-serif, and monospace to the platform-specific font name. | 64 * Map serif, san-serif, and monospace to the platform-specific font name. |
| 65 */ | 65 */ |
| 66 const char* platform_font_name(const char* name); | 66 const char* platform_font_name(const char* name); |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * Sets the paint to use a platform-independent text renderer | 69 * Sets the paint to use a platform-independent text renderer |
| 70 */ | 70 */ |
| 71 void set_portable_typeface(SkPaint* paint, const char* name = NULL, | 71 void set_portable_typeface(SkPaint* paint, const char* name = nullptr, |
| 72 SkTypeface::Style style = SkTypeface::kNormal); | 72 SkTypeface::Style style = SkTypeface::kNormal); |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * Returns a platform-independent text renderer. | 75 * Returns a platform-independent text renderer. |
| 76 */ | 76 */ |
| 77 SkTypeface* create_portable_typeface(const char* name, SkTypeface::Style sty
le); | 77 SkTypeface* create_portable_typeface(const char* name, SkTypeface::Style sty
le); |
| 78 | 78 |
| 79 /** Call to clean up portable font references. */ | 79 /** Call to clean up portable font references. */ |
| 80 void release_portable_typefaces(); | 80 void release_portable_typefaces(); |
| 81 | 81 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); | 122 void create_hemi_normal_map(SkBitmap* bm, const SkIRect& dst); |
| 123 | 123 |
| 124 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); | 124 void create_frustum_normal_map(SkBitmap* bm, const SkIRect& dst); |
| 125 | 125 |
| 126 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); | 126 void create_tetra_normal_map(SkBitmap* bm, const SkIRect& dst); |
| 127 | 127 |
| 128 } // namespace sk_tool_utils | 128 } // namespace sk_tool_utils |
| 129 | 129 |
| 130 #endif // sk_tool_utils_DEFINED | 130 #endif // sk_tool_utils_DEFINED |
| OLD | NEW |