Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2018-02-23
KOUBEI SHANGHAI INFORMATION TECH CO LTD
View PDF7 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This application provides a user interface rendering method to solve the problem of user interface freeze in the prior art

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for rendering user interface
  • Method and device for rendering user interface
  • Method and device for rendering user interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0093] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without departing from the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

[0094] The present application provides a method for rendering a user interface, an apparatus for rendering a user interface, and an electronic device. The following is a detailed description one by one with reference to the accompanying drawings of the embodiments provided in the present application, and each step of the method is described.

[0095] An example of a method for rendering a user interface provided by the present application is as follows:

[0096] Refer to the attached figure 1 , whic...

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

PUM

No PUM Login to View More

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.

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

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/451
CPCG06F9/451
Inventor 李沛杨朝楷
Owner KOUBEI SHANGHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products