Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/pipeline/skia/
DReorderBarrierDrawables.cpp142 const SkScalar casterAlpha = in drawShadow() local
144 if (casterAlpha <= 0.0f) { in drawShadow()
148 float ambientAlpha = (LightingInfo::getAmbientShadowAlpha() / 255.f) * casterAlpha; in drawShadow()
149 float spotAlpha = (LightingInfo::getSpotShadowAlpha() / 255.f) * casterAlpha; in drawShadow()
217 casterAlpha < 1.0f ? SkShadowFlags::kTransparentOccluder_ShadowFlag : 0); in drawShadow()
/frameworks/native/services/surfaceflinger/
DLayer.cpp4351 const float casterAlpha = snapshot->alpha; in updateSnapshot() local
4357 snapshot->shadowSettings.casterIsTranslucent = !casterIsOpaque || (casterAlpha < 1.0f); in updateSnapshot()
4358 snapshot->shadowSettings.ambientColor *= casterAlpha; in updateSnapshot()
4359 snapshot->shadowSettings.spotColor *= casterAlpha; in updateSnapshot()