Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DTexture.cpp247 SkBitmap Texture::uploadToN32(const SkBitmap& bitmap, bool hasLinearBlending, in uploadToN32() argument
251 bitmap.info().alphaType(), hasLinearBlending ? sRGB : nullptr)); in uploadToN32()
267 bool Texture::hasUnsupportedColorType(const SkImageInfo& info, bool hasLinearBlending) { in hasUnsupportedColorType() argument
271 && hasLinearBlending in hasUnsupportedColorType()
300 bool hasLinearBlending = mCaches.extensions().hasLinearBlending(); in upload() local
305 needSRGB && hasLinearBlending, &internalFormat, &format, &type); in upload()
355 if (CC_UNLIKELY(hasUnsupportedColorType(bitmap.info(), hasLinearBlending))) { in upload()
359 SkBitmap rgbaBitmap = uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in upload()
DTexture.h52 bool hasLinearBlending, sk_sp<SkColorSpace> sRGB);
53 static bool hasUnsupportedColorType(const SkImageInfo& info, bool hasLinearBlending);
DExtensions.h43 inline bool hasLinearBlending() const { return hasSRGB() && mHasLinearBlending; } in hasLinearBlending() function
DCaches.h136 return extensions().hasLinearBlending() && needSRGB ? GL_SRGB8_ALPHA8 : GL_RGBA;
DGradientCache.cpp71 , mHasLinearBlending(extensions.hasLinearBlending()) { in GradientCache()
DProgramCache.cpp505 , mHasLinearBlending(extensions.hasLinearBlending()) { in ProgramCache()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp228 bool hasLinearBlending = caches.extensions().hasLinearBlending(); in allocateHardwareBitmap() local
231 needSRGB && hasLinearBlending, &internalFormat, &format, &type); in allocateHardwareBitmap()
248 hasLinearBlending))) { in allocateHardwareBitmap()
250 bitmap = uirenderer::Texture::uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in allocateHardwareBitmap()
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp187 if (mCaches->extensions().hasLinearBlending() && in interruptForFunctorInvoke()
194 if (mCaches->extensions().hasLinearBlending() && in resumeFromFunctorInvoke()