summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-03-23 16:29:22 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-03-23 17:19:13 +0800
commit4ac034389126cb8909c6490414802dccc9f11b50 (patch)
tree3f6cea9d792112245b01d4720c9aa2cb36594abd /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent80e8713490d1567d4e0de354414698744f5a5933 (diff)
Use parent frame to calculate wallpaper offset
Session#setWallpaperZoomOut may be called when display is rotated (DisplayInfo is updated) but wallpaper window has stopped to update frame (isVisibleRequested() of wallpaper window is false). In this case, when the zoom request calls to WallpaperController# updateWallpaperOffset, it calculates the offset with inconsistent orientation that causes unexpected wallpaper shift. Because wallpaper has no fit-insets, its parent frame should equal to display size. The example of wallaper WindowFrame: containing=[0,0][1080,2160] parent=[0,0][1080,2160] display=[-10000,-10000][10000,10000] mFrame=[0,0][1763,2160] So use the parent frame to ensure that the offset is computed from the frames with the same orientation. Bug: 183181781 Test: WallpaperControllerTests Change-Id: Icf55e3570c260b963fab6dc85814f9e8e305163c
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions