Method, device and terminal for drawing graphics based on X window system
A graphics rendering and windowing system technology, applied in the direction of program control device, processor architecture/configuration, user interface execution, etc., can solve the problems of low performance of X window system, inability to take advantage of GPU parallel processing data, etc., to improve performance. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] figure 1 It is a flowchart of a method for drawing graphics based on the X Window System provided by Embodiment 1 of the present invention. The embodiment of the present invention aims at the problem that the current X window system cannot take advantage of the advantages of GPU parallel processing of data in the process of drawing graphics, resulting in low performance of the X window system, and provides a method for drawing graphics based on the X window system, such as figure 1 As shown, the specific steps of the method are as follows:
[0033] Step S101 , acquiring a target instruction, and determining an instruction type of the target instruction, where the instruction type includes a hardware acceleration instruction and a software acceleration instruction.
[0034] Wherein, the target instruction is an acceleration instruction to be processed.
[0035] In this embodiment, the acceleration instruction may include the following instruction information: instructi...
Embodiment 2
[0061] figure 2 It is a flowchart of a method for drawing graphics based on the X Window System provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, if the target command is a software acceleration command, the graphics drawing function corresponding to the target command is called, and after the graphics drawing function corresponding to the target command is executed, the corresponding graphics drawing function of the target command is called Synchronous function; obtain the next acceleration instruction executed after the target instruction, judge the instruction type of the next acceleration instruction, and perform drawing processing according to the instruction type of the next acceleration instruction. like figure 2 As shown, the specific steps of the method are as follows:
[0062] Step S201, acquiring a target instruction, and determining an instruction type of the target instruction, where the instruct...
Embodiment 3
[0086] image 3 It is a flow chart of a method for drawing graphics based on the X Window System provided by Embodiment 3 of the present invention. On the basis of any of the above embodiments, in this embodiment, before acquiring the target instruction, it further includes: creating an instruction queue; and sequentially adding acceleration instructions to be executed to the instruction queue in real time according to a preset execution order.
[0087] Specifically, an instruction queue can be created after the X window system is started, and after receiving a graphics drawing command issued by an upper layer application, converting the graphics drawing command into at least one acceleration instruction, packaging each acceleration instruction into a form that can be stored in the instruction queue , and the packaged acceleration instructions are sequentially added to the instruction queue according to the preset execution order. Wherein, the preset execution sequence may be...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


