Searched refs:needSRGB (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/
H A DCaches.h128 * If the device supports linear blending and needSRGB is true,
131 constexpr GLint rgbaInternalFormat(bool needSRGB = true) const {
132 return extensions().hasLinearBlending() && needSRGB ? GL_SRGB8_ALPHA8 : GL_RGBA;
H A DTexture.cpp194 void Texture::colorTypeToGlFormatAndType(const Caches& caches, SkColorType colorType, bool needSRGB, argument
204 if (needSRGB) {
220 *outInternalFormat = caches.rgbaInternalFormat(needSRGB);
293 bool needSRGB = transferFunctionCloseToSRGB(bitmap.info().colorSpace()); local
296 colorTypeToGlFormatAndType(mCaches, bitmap.colorType(), needSRGB && hasLinearBlending,
336 if (needSRGB && internalFormat == GL_RGBA && mCaches.extensions().hasSRGB() &&
H A DTexture.h55 bool needSRGB, GLint* outInternalFormat,
/frameworks/base/libs/hwui/renderthread/
H A DOpenGLPipeline.cpp415 bool needSRGB = uirenderer::transferFunctionCloseToSRGB(skBitmap.info().colorSpace()); local
419 needSRGB && hasLinearBlending, &internalFormat,

Completed in 72 milliseconds