发明名称 METHOD AND DEVICE FOR RENDERING CANVAS ELEMENT ON ANDROID SYSTEM BASED ON GPU
摘要 Provided is a method for rendering an Html5 Canvas element on an Android system based on GPU hardware, comprising: after a rendering operation instruction for a Canvas element in an Html5 webpage is detected and an initialization creation 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 an EGL Context which is created during the initialization operation as the current context of a thread where a rendering operation is located; rendering the Canvas element in an off-screen local window which is created during the initialization operation by using the GPU; and copying the rendered Canvas element to the current active window of a device from the off-screen local window by using the mapping operation function of the GPU. By means of the method, by using a local window rendering mechanism provided by an Android operating system and the OpenGL ES API, the Canvas element is drawn and mixed by using the GPU, thereby improving the Canvas rendering performance by using the GPU hardware acceleration.
申请公布号 WO2014205993(A1) 申请公布日期 2014.12.31
申请号 WO2013CN87693 申请日期 2013.11.22
申请人 GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD 发明人 YI, XUXIN
分类号 G06T15/00 主分类号 G06T15/00
代理机构 代理人
主权项
地址