-
公开(公告)号:US20240404157A1
公开(公告)日:2024-12-05
申请号:US18697447
申请日:2022-10-17
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Chao Liu , Kun Cui , Jian Chen , Yuheng Chen , Wei Li
IPC: G06T13/20
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.
-
公开(公告)号:US20230419454A1
公开(公告)日:2023-12-28
申请号:US18252718
申请日:2021-11-22
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Jian Chen , Kun Cui , Liang Wang , Yonglang Wang , Ran Huang , Yuheng Chen , Chen Wang , Chen Zhang , Yu Li , Chao Liu , Qucheng Zhi
Abstract: A control blurring method and apparatus, a terminal device, and a readable storage medium are provided, which are applicable to the terminal field. The method includes: obtaining a dynamic parameter of a first control in a first frame image during drawing of the first frame image; encapsulating a drawing result of the first frame image and a dynamic parameter, to obtain a result of the encapsulation; performing composition on the drawing result of the first frame image based on the dynamic parameter, to obtain a composition result having a blur effect of the first frame image; and performing display based on the composition result of the first frame image.
-