首页> 外国专利> Method, apparatus and storage medium for processing HTML5 canvas application

Method, apparatus and storage medium for processing HTML5 canvas application

机译:HTML5画布应用程序的处理方法,装置和存储介质

摘要

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.
机译:本发明提供一种用于处理HTML5 Canvas应用程序的方法,装置和存储介质,所述方法包括:在第一线程中:当检测到渲染时,CPU执行图形绘制应用程序的代码来绘制画布的每一帧。需要时,不执行相应的渲染就缓存所述画布框架的所有画布绘制命令,完成所述画布框架的绘制后,将所有缓存的所述画布框架的画布绘制命令发送至第二线程;在第二线程中,CPU调用GPU执行第一线程发送的每一帧画布的所有画布绘制命令,GPU根据画布绘制命令对画布的每一帧进行渲染。本发明通过缓存绘图命令来实现并发线程处理,从而可以同时执行JavaScript代码和渲染。结果,充分利用了不同线程的资源,从而大大提高了HTML5 Canvas应用程序的响应速度,并提高了HTML5 Canvas应用程序的性能。

著录项

  • 公开/公告号US10346018B2

    专利类型

  • 公开/公告日2019-07-09

    原文格式PDF

  • 申请/专利权人 GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO. LTD.;

    申请/专利号US201514980590

  • 发明设计人 XUXIN YI;

    申请日2015-12-28

  • 分类号G06F17;G06F3/0484;G06F9/50;G06F17/22;G06F17/21;

  • 国家 US

  • 入库时间 2022-08-21 12:13:26

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号