Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fb3632d authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Wallpaper: Propagate transform hint from WM to BBQ surface

This allows the buffer producer to consume the transform hint
for the first frame.

Bug: 194425759
Test: Rotate static wallpaper and check transform sent to HWC for wallpaper layer
Change-Id: I7f688c35ea836f57e3443e03d584fa85e745c6f9
parent 5be998a6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1033,6 +1033,9 @@ public abstract class WallpaperService extends Service {
                                    .build();
                            updateSurfaceDimming();
                        }
                        // Propagate transform hint from WM so we can use the right hint for the
                        // first frame.
                        mBbqSurfaceControl.setTransformHint(mSurfaceControl.getTransformHint());
                        Surface blastSurface = getOrCreateBLASTSurface(mSurfaceSize.x,
                                mSurfaceSize.y, mFormat);
                        // If blastSurface == null that means it hasn't changed since the last