Home
last modified time | relevance | path

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

/external/skia/include/gpu/
DGrColor.h125 static const float ONE_OVER_255 = 1.f / 255.f; in GrColorToRGBAFloat() local
126 rgba[0] = GrColorUnpackR(color) * ONE_OVER_255; in GrColorToRGBAFloat()
127 rgba[1] = GrColorUnpackG(color) * ONE_OVER_255; in GrColorToRGBAFloat()
128 rgba[2] = GrColorUnpackB(color) * ONE_OVER_255; in GrColorToRGBAFloat()
129 rgba[3] = GrColorUnpackA(color) * ONE_OVER_255; in GrColorToRGBAFloat()
134 static const float ONE_OVER_255 = 1.f / 255.f; in GrNormalizeByteToFloat() local
135 return value * ONE_OVER_255; in GrNormalizeByteToFloat()