Home
last modified time | relevance | path

Searched refs:cgFloat (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/utils/mac/
DSkCGBase.h28 static inline SkScalar SkScalarFromCGFloat(CGFloat cgFloat) { in SkScalarFromCGFloat() argument
29 return CGFLOAT_IS_DOUBLE ? SkDoubleToScalar(cgFloat) : SkFloatToScalar(cgFloat); in SkScalarFromCGFloat()
32 static inline float SkFloatFromCGFloat(CGFloat cgFloat) { in SkFloatFromCGFloat() argument
33 return CGFLOAT_IS_DOUBLE ? static_cast<float>(cgFloat) : cgFloat; in SkFloatFromCGFloat()
/external/skqp/src/ports/
DSkFontHost_mac.cpp168 static SkScalar CGToScalar(CGFloat cgFloat) { in CGToScalar() argument
170 return SkFloatToScalar(cgFloat); in CGToScalar()
173 return SkDoubleToScalar(cgFloat); in CGToScalar()
177 static float CGToFloat(CGFloat cgFloat) { in CGToFloat() argument
179 return cgFloat; in CGToFloat()
182 return static_cast<float>(cgFloat); in CGToFloat()