summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorMariia Sandrikova <mariiasand@google.com>2021-07-22 23:26:19 +0100
committerMariia Sandrikova <mariiasand@google.com>2021-07-30 12:58:34 +0100
commita8291245777023235c065b84fb172e0121c91933 (patch)
tree8b44dffebd0224ccc7d0545d4d0f2a2f6dd97eff /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta8813c12da1d6aa5f1a0c8f61b7a6cdb1c7a1b92 (diff)
Freeze live wallpaper for letterbox background.
With this change, WallpaperController sends "freeze" / "unfreeze" commands when the app window is letterboxed / not letterboxed indicating that: - "freeze": a screenshot of the wallpaper is taken by WallpaperServices and put on top of the main surface while the wallpaper host is notified through onVisibilityChanged(false) callback that it's no longer visible. - "unfreeze": a screenshot of the wallpaper is removed and the wallpaper host is notified through onVisibilityChanged(true) callback if the wallpaper is visible again (e.g., if transitioned from an app to the Home screen). Logic isn't applied to static wallpapers. When wallpaper size changes while being frozen, the screenshot is scaled and cropped to adjust to the new size. Fix: 177884751 Test: Manual, atest WallpaperServiceTest, WallpaperServiceTests Change-Id: If0300478cdccc07d226117e01ce3d43aa0b432a0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions