Invention Grant
- Patent Title: Canvas element rendering method and apparatus implemented on android system based on GPU
-
Application No.: US14901431Application Date: 2013-11-22
-
Publication No.: US10013503B2Publication Date: 2018-07-03
- Inventor: Jie Liang , Xuxin Yi
- Applicant: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
- Applicant Address: CN Guangzhou
- Assignee: GUANGZHOU UCWEB COMPUTER TECNOLOGY CO., LTD.
- Current Assignee: GUANGZHOU UCWEB COMPUTER TECNOLOGY CO., LTD.
- Current Assignee Address: CN Guangzhou
- Priority: CN201310266070 20130628
- International Application: PCT/CN2013/087693 WO 20131122
- International Announcement: WO2014/205993 WO 20141231
- Main IPC: G06F13/14
- IPC: G06F13/14 ; G06F17/30 ; G06F17/22 ; G06T1/20

Abstract:
Embodiments of the disclosure are directed to HTML5 Canvas element rendering methods implemented on an Android system based on GPU hardware. The methods may include after a rendering operation instruction for a Canvas element in an HTML5 web page is detected and an initialization operation is completed, converting an invoking instruction for a 2D Canvas drawing API into an invoking instruction for an OpenGL ES API through a Skia GPU function library; setting EGL Context created during the initialization operation as a current context of a thread where a rendering operation is located; rendering the Canvas element in an off-screen local window created during the initialization operation by using the GPU; and copying the rendered Canvas element to a current active window of a device from the off-screen local window by using a mapping operation function of the GPU. The methods, by making use of a local window rendering mechanism provided by an Android operating system and the OpenGL ES API, allow the Canvas element to be drawn and mixed by using the GPU, thereby improving the performance of Canvas rendering by using GPU hardware acceleration.
Public/Granted literature
- US20160328486A1 CANVAS ELEMENT RENDERING METHOD AND APPARATUS IMPLEMENTED ON ANDROID SYSTEM BASED ON GPU Public/Granted day:2016-11-10
Information query