1. A computer-implemented method, comprising: executing a native code module in a secure runtime environment, the secure runtime environment preventing the native code module from accessing a graphics rendering interface outside of the secure runtime environment; generating, using the native code module, rendering commands based on a graphical scene representation; and transmitting the rendering commands from the native code module within the secure runtime environment to a trusted code module outside the secure runtime environment for execution of the rendering commands by graphics hardware associated with the graphics rendering interface, the trusted code module configured to communicate with the graphics rendering interface to provide graphics acceleration by the graphics hardware.