Index: ui/gfx/skia_util.h |
diff --git a/ui/gfx/skia_util.h b/ui/gfx/skia_util.h |
index 25c96d0370522e18bd9f8c2e771cc4ffd84917fc..1953e635c25b69163ca658e974e0dc7e50517a3e 100644 |
--- a/ui/gfx/skia_util.h |
+++ b/ui/gfx/skia_util.h |
@@ -88,6 +88,15 @@ GFX_EXPORT void ConvertSkiaToRGBA(const unsigned char* skia, |
int pixel_width, |
unsigned char* rgba); |
+// Converts a Skia floating-point value to an int appropriate for hb_position_t. |
+GFX_EXPORT int SkiaScalarToHarfBuzzUnits(SkScalar value); |
+ |
+// Converts an hb_position_t to a Skia floating-point value. |
+GFX_EXPORT SkScalar HarfBuzzUnitsToSkiaScalar(int value); |
+ |
+// Converts an hb_position_t to a float. |
+GFX_EXPORT float HarfBuzzUnitsToFloat(int value); |
+ |
} // namespace gfx |
#endif // UI_GFX_SKIA_UTIL_H_ |