Searched refs:ONE_OVER_255 (Results 1 – 1 of 1) sorted by relevance
125 static const float ONE_OVER_255 = 1.f / 255.f; in GrColorToRGBAFloat() local126 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() local135 return value * ONE_OVER_255; in GrNormalizeByteToFloat()