Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/
DGrColor.h72 static const float ONE_OVER_255 = 1.f / 255.f; in GrNormalizeByteToFloat() local
73 return value * ONE_OVER_255; in GrNormalizeByteToFloat()
/third_party/skia/src/shaders/gradients/
DSkGradientShader.cpp830 const float ONE_OVER_255 = 1.f / 255; in ColorConverter() local
833 SkColorGetR(colors[i]) * ONE_OVER_255, in ColorConverter()
834 SkColorGetG(colors[i]) * ONE_OVER_255, in ColorConverter()
835 SkColorGetB(colors[i]) * ONE_OVER_255, in ColorConverter()
836 SkColorGetA(colors[i]) * ONE_OVER_255 }); in ColorConverter()