Lines Matching defs:rate
110 float rate = 0.0f;
112 case kARGB_4444_SkColorType: rate = 1/15.0f; break;
113 case kRGB_565_SkColorType: rate = 1/63.0f; break;
118 case kSRGBA_8888_SkColorType: rate = 1/255.0f; break;
122 case kBGRA_1010102_SkColorType: rate = 1/1023.0f; break;
154 // and finally scale all that by rate. We keep dither strength strictly
157 // rate could be a uniform, but since it's based on the destination SkColorType,
158 // we can bake it in without hurting the cache hit rate.
159 float scale = rate * ( 2/128.0f),
160 bias = rate * (-63/128.0f);