Method and device for rendering user interface

A user interface and object technology, applied in the field of UI rendering, can solve problems such as user interface stuck
CN107729094AActive Publication Date: 2018-02-23KOUBEI SHANGHAI INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
KOUBEI SHANGHAI INFORMATION TECH CO LTD
Publication Date
2018-02-23

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for rendering a user interface. The method comprises the steps of triggering rendering of a user interface of a to-be-rendered object based on a main thread; switchingthe main thread to a subsidiary thread, and drawing a bitmap corresponding to the to-be-tendered object through the subsidiary thread; calling back the main thread, and applying the drawn bitmap to displaying content of the to-be-tendered object; rendering the user interface according to the displaying content of the to-be-tendered object. By means of the method for rendering the user interface,bitmap drawing operations which are originally executed in the main thread are transferred to the subsidiary thread to be executed, thus the load of the main thread is alleviated, and it is avoided that the user interface gets stuck when the main thread timely handles rendering tasks while having heavy tasks.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the technical field of UI rendering, and in particular, to a method for rendering a user interface. The present application also relates to an apparatus for rendering a user interface and an electronic device. Background technique

[0002] In a terminal device, when the CPU (Central Processing Unit), GPU (Graphics Processing Unit, graphics processing unit) and display perform user interface (UI, User Interface) rendering, they work together in the following way: when the frame synchronization signal arrives After that, the application will be notified to render the user interface, and the main thread of the application will start to calculate the display content in the CPU, such as view creation, layout calculation, picture decoding, text drawing, etc. After the calculation is completed, the CPU will submit the display content to the GPU , the GPU will transform, combine and render according to the display content. A...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More