Hardware-accelerated graphics for web applications using native code modules
AssigneeGoogle Inc.
InventorsAntoine Labour, Matthew Papakipos
Life of this patent
Estimating the term…
Abstract
Some embodiments provide a system that executes a web application. During operation, the system loads the web application in a web browser and loads a native code module associated with the web application into a secure runtime environment. Next, the system writes a set of rendering commands to a command buffer using the native code module and concurrently reads the rendering commands from the command buffer. Finally, the system renders an image for use by the web application by executing the rendering commands using a graphics-processing unit (GPU).
Claims22
A method for executing a web application, comprising:
- loading the web application in a web browser;
- loading a native code module associated with the web application into a secure runtime environment;
- writing a set of rendering commands to a command buffer using the native code module;
- reading the rendering commands from the command buffer using a trusted code module;
- and
- rendering an image for use by the web application by executing the rendering commands read by the trusted code module using a rendering engine and a graphics-processing unit (GPU).
A system for executing a web application, comprising:
- a web browser configured to load the web application;
- a secure runtime environment configured to execute a native code module associated with the web application;
- the native code module configured to write a set of rendering commands to a command buffer;
- and
- a trusted code module configured to:
- read the rendering commands from the command buffer;
- and
- render an image for use by the web application by executing the rendering commands using a rendering engine and a graphics-processing unit (GPU).
A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for executing a web application, the method comprising:
- loading the web application in a web browser;
- loading a native code module associated with the web application into a secure runtime environment;
- writing a set of rendering commands to a command buffer using the native code module;
- reading the rendering commands from the command buffer using a trusted code module;
- and
- rendering an image for use by the web application by executing the rendering commands read by the trusted code module using a rendering engine and a graphics-processing unit (GPU).
Dependencies are inferred from the claim text.