ANIMATION EFFECT DISPLAY METHOD AND ELECTRONIC DEVICE

    公开(公告)号:US20240404157A1

    公开(公告)日:2024-12-05

    申请号:US18697447

    申请日:2022-10-17

    Abstract: Embodiments of this application provide an animation effect display method and an electronic device, and relate to the field of electronic technologies. According to the animation effect display method provided in an embodiment of this application, before an animation effect is displayed, a UI thread of an application, or a rendering thread of the application, or a rendering process determines controls whose properties change in duration of the animation effect, and determines properties of controls on an interface of each frame, and then the rendering thread of the application or the rendering process generates, based on the properties of the controls on the interface of each frame, a bitmap corresponding to the interface of the frame. Because the properties like sizes and locations of the controls on the interface of each frame are determined before the animation effect is displayed, the UI thread does not need to perform measurement, layout, and drawing and recording (recording) on the interface of each frame, so that display of the animation effect is not affected by UI thread blocking.

Patent Agency Ranking