Home
last modified time | relevance | path

Searched refs:casterAlpha (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
DReorderBarrierDrawables.cpp136 const SkScalar casterAlpha = in drawShadow() local
138 if (casterAlpha <= 0.0f) { in drawShadow()
142 float ambientAlpha = (LightingInfo::getAmbientShadowAlpha() / 255.f) * casterAlpha; in drawShadow()
143 float spotAlpha = (LightingInfo::getSpotShadowAlpha() / 255.f) * casterAlpha; in drawShadow()
211 casterAlpha < 1.0f ? SkShadowFlags::kTransparentOccluder_ShadowFlag : 0); in drawShadow()
/frameworks/native/services/surfaceflinger/
DLayer.cpp649 const float casterAlpha = casterLayerSettings.alpha; in prepareShadowClientComposition() local
660 shadowLayer.shadow.casterIsTranslucent = !casterIsOpaque || (casterAlpha < 1.0f); in prepareShadowClientComposition()
661 shadowLayer.shadow.ambientColor *= casterAlpha; in prepareShadowClientComposition()
662 shadowLayer.shadow.spotColor *= casterAlpha; in prepareShadowClientComposition()