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.