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

Graphic display method and device for compatibly running Android application on Linux

A graphics display and graphics technology, applied in the computer field, can solve problems such as the incompatibility of GPU physical devices and the inability to complete graphics display functions normally, and achieve the effects of reducing consumption and improving efficiency

Active Publication Date: 2021-01-26
北京技德系统技术有限公司
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The main technical problem to be solved by the present invention is that when the Android application runs in the Linux system in a container mode, due to the large difference between the Android graphics display and the Linux graphics display mechanism, the graphics display function cannot be completed normally. problem, and the incompatibility problem due to different types of GPU physical devices, a kind of graphics display method and device compatible with Android operating system on Linux is proposed, which can unify the graphics display mechanism of Android and Linux, and according to the current system Different GPU types of graphics cards in the environment adopt different strategies to complete the entire process of graphics display, so as to achieve the purpose of integrated graphics display, and compared with a single strategy, it can reduce the consumption of system resources and improve the efficiency of graphics display

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
  • Graphic display method and device for compatibly running Android application on Linux
  • Graphic display method and device for compatibly running Android application on Linux
  • Graphic display method and device for compatibly running Android application on Linux

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] The implementation steps of the present invention are specifically described below through two application scenarios under the condition that the GPU hardware type of the Linux system can support the graphics library required by the Android application.

[0057] Application scenario one:

[0058] figure 2 It is a flow chart of a graphic display method compatible with running Android applications on Linux provided by the embodiment of the present invention. It can be seen from the figure that in the method of this embodiment, the steps are as follows:

[0059] S1: Determine whether the Android side of the container supports the GPU hardware type by the graphics drawing control process. Specifically, the steps are as follows:

[0060] 1.1: After Linux is started, the Graphic Controller process of the graphics drawing control module in JStack is automatically started as the core controller for the entire graphics compatible display; Graphic Controller will obtain the cur...

Embodiment 2

[0101] Furthermore, as an implementation of the methods shown in the above embodiments, another embodiment of the present invention also provides a graphics display device compatible with running an Android operating system on Linux. This device embodiment corresponds to the foregoing method embodiment. For the convenience of reading, this device embodiment does not repeat the details in the foregoing method embodiment one by one, but it should be clear that the device in this embodiment can correspond to the foregoing method implementation. Everything in the example. In the device of this embodiment, there are following modules:

[0102] One: the graphics drawing control module Graphic Controller (corresponding to the graphics drawing control process in implementation 1), obtains the current Linux system GPU hardware type, judges whether Android supports the described current Linux system GPU hardware type, if so, starts the first drawing module, If otherwise, start the seco...

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 graphic display method and device for compatibly running an Android application on Linux, and belongs to the field of computer basic software. The method comprises the stepsthat whether Android supports a current GPU hardware type or not is judged, if yes, a graph drawn in the Android is directly imported into a DRI of Linux to be synthesized and then displayed, and if not, an Android graph library OpenGL ES is directly converted into an OpenGL library interface of the Linux, and then a GPU is called through a DRM of the Linux to conduct graph drawing, synthesizing and displaying; in addition, the problem that an old-fashioned display card does not support application of a graphics library is solved through a graphics soft acceleration method. According to the method, the display problem caused by different types of GPU hardware faced by Android applications compatibly running on a Linux system is solved, different strategies are adopted to complete the wholeprocess of graphic display according to different GPU types in the current system environment so as to achieve the purpose of fusing graphic display, and compared with a single strategy, the method has the advantages that the consumption of system resources can be reduced, and the graphic display efficiency is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a display method and device for fused graphics in the field of Linux-compatible Android operation. Background technique [0002] Generally speaking, the graphics display mechanism of Android is completed inside the Android system. In order to solve the graphics display problem on embedded devices with weaker GPU capabilities, Android uses an embedded graphics GPU and an OpenGL ES graphics display interface library. . image 3 It shows the graphics display mechanism of Android. Specifically, the graphics display of Android is to complete the overall drawing process of graphics drawing through SurfaceFlinger in Android. SurfaceFlinger is a control unit. For the graphics layer that needs to be displayed by the upper layer application, SurfaceFlinger will choose The corresponding display device calls the OpenGL ES graphics library interface through the EGL interface to complete the...

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/445G06F9/451
CPCG06F9/44505G06F9/44536G06F9/451
Inventor 姚宏亮唐宏伟周剑张耀斌
Owner 北京技德系统技术有限公司
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