Merge "Do not accept blur transaction when disabled" into rvc-dev am: b31d3c81e9

Original change: undetermined

Change-Id: Id7e4e1cf741efa6cb88855ebb2ee1d866df8ee73
This commit is contained in:
Lucas Dupin 2020-06-01 21:48:09 +00:00 committed by Automerger Merge Worker
commit e0e480c2d8

View file

@ -3685,7 +3685,7 @@ uint32_t SurfaceFlinger::setClientStateLocked(
if (layer->setCornerRadius(s.cornerRadius))
flags |= eTraversalNeeded;
}
if (what & layer_state_t::eBackgroundBlurRadiusChanged && !mDisableBlurs) {
if (what & layer_state_t::eBackgroundBlurRadiusChanged && !mDisableBlurs && mSupportsBlur) {
if (layer->setBackgroundBlurRadius(s.backgroundBlurRadius)) flags |= eTraversalNeeded;
}
if (what & layer_state_t::eLayerStackChanged) {