Invention Grant
- Patent Title: Method, apparatus and storage medium for processing HTML5 canvas application
-
Application No.: US14980590Application Date: 2015-12-28
-
Publication No.: US10346018B2Publication Date: 2019-07-09
- Inventor: Xuxin Yi
- Applicant: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
- Applicant Address: CN Guangzhou
- Assignee: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
- Current Assignee: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
- Current Assignee Address: CN Guangzhou
- Agency: Alston & Bird LLP
- Priority: CN201310267709 20130628
- Main IPC: G06F17/00
- IPC: G06F17/00 ; G06F3/0484 ; G06F9/50 ; G06F17/22 ; G06F17/21

Abstract:
The present invention provides a method, an apparatus and a storage medium for processing an HTML5 Canvas application, said method comprising: in the first thread: CPU executes codes of a graphic drawing application to draw each frame of canvas, when it is detected that rendering is needed, all canvas drawing commands of said frame of canvas are cached without executing the corresponding rendering, and when the drawing of said frame of canvas is completed, all the cached canvas drawing commands of said frame of canvas are sent to a second thread; in the second thread, CPU calls GPU to execute all canvas drawing commands of each frame of canvas sent by the first thread, and GPU performs rendering on each frame of canvas according to the canvas drawing commands. The present invention realizes concurrent thread processing by means of caching drawing commands such that JavaScript codes and rendering can be executed simultaneously. As a result, resources of different threads are fully used to greatly increase the response speed of the HTML5 Canvas application and improve the performance of the HTML5 Canvas application.
Public/Granted literature
- US20160162171A1 METHOD, APPARATUS AND STORAGE MEDIUM FOR PROCESSING HTML5 CANVAS APPLICATION Public/Granted day:2016-06-09
Information query