Home | History | Annotate | Download | only in hwui

Lines Matching defs:sRGB

251         sk_sp<SkColorSpace> sRGB) {
254 bitmap.info().alphaType(), hasLinearBlending ? sRGB : nullptr));
309 // RGBA16F is always linear extended sRGB
317 // If an RGBA16F bitmap needs conversion, we know the target will be sRGB
320 // If the bitmap is sRGB we don't need conversion
336 mConnector.reset(new ColorSpaceConnector(src, ColorSpace::sRGB()));
338 // A non-sRGB color space might have a transfer function close enough to sRGB
339 // that we can save shader instructions by using an sRGB sampler
340 // This is only possible if we have hardware support for sRGB textures
356 // TODO: Handle sRGB gray bitmaps
360 sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeSRGB();
361 SkBitmap rgbaBitmap = uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB));