diff options
| author | 2022-11-09 16:24:07 +0000 | |
|---|---|---|
| committer | 2022-11-29 14:29:07 +0000 | |
| commit | 696adad6149192bd0e322c8a21fba4010cc4ce29 (patch) | |
| tree | fefc5051f749121e5d685d0b41e33e7166579756 /libs/androidfw/StringPool.cpp | |
| parent | 2ff1284e94bb64aeb71c9c35ffbd92c16d30a0c6 (diff) | |
Make ImageWallpaper handle WallpaperService messages on its own thread
When a wallpaper is called to be attached, IWallpaperEngineWrapper
sends a DO_ATTACH message to be handled on the main looper of the
wallpaper implementation. In the case of ImageWallpaper, it is
currently systemui. When system ui is occupied by other tasks,
reception of this message is delayed. And this decreases the
performance of switching between Android users in case the target user
has an ImageWallpaper.
This CL makes sure these service messages are handled on
ImageWallpaper's own thread, and the drawing of the wallpaper is not
delayed.
Bug: 242969351
Test: Manual comparison of perfetto traces
Change-Id: Ia911f1b879a20658d0b71e3486c079cbbcb081c8
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions