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
This commit is contained in:
Vishnu Nair
2021-07-23 09:53:55 -07:00
parent 5be998a660
commit 3fb3632d43

View File

@@ -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