SF: Fix blur region transform regression
Fixes a regression caused by ag/19611172
(bedb44bb15cd11689b96770a45eccf475778e9eb) where we used
the local to screen space transform inv instead of local transform inv
for blur.
Test: atest BlurTests
Bug: 248609209
Change-Id: I06a97ca32c7689a252029a319a9519d2bffdbd25
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 9777092..fa6e6d4 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -477,7 +477,7 @@
snapshot->geomLayerTransform = getTransform();
snapshot->geomInverseLayerTransform = snapshot->geomLayerTransform.inverse();
snapshot->transparentRegionHint = getActiveTransparentRegion(drawingState);
-
+ snapshot->blurRegionTransform = getActiveTransform(drawingState).inverse();
snapshot->blendMode = static_cast<Hwc2::IComposerClient::BlendMode>(blendMode);
snapshot->alpha = alpha;
snapshot->backgroundBlurRadius = drawingState.backgroundBlurRadius;