Revert "Only rescale wallpaper if its > display height"

Revert submission 14802973

Reason for revert: Droid cop: Possible culprits for Bug 190325415
Reverted Changes:
Ifc451f540:Cache set wallpaper as PNG instead of JPEG
Ifefd3e56d:Only rescale wallpaper if its > display height

Change-Id: If7c0b310a99189f8e80ca0b1049731edc9595696
This commit is contained in:
Owen Kim
2021-06-07 05:45:29 +00:00
parent 723d2c2ce9
commit 1e54afcc1a

View File

@@ -628,7 +628,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
}
// scale if the crop height winds up not matching the recommended metrics
needScale = cropHint.height() > wpData.mHeight
needScale = wpData.mHeight != cropHint.height()
|| cropHint.height() > GLHelper.getMaxTextureSize()
|| cropHint.width() > GLHelper.getMaxTextureSize();