Patent ID: 9633410
Date: 2017-04-25
CPC Classifications: G06T

Claim:
1. An apparatus for operating graphics applications, comprising: a general purpose processor; a graphics processor to complement the general purpose processor; first dedicated memory coupled with the general purpose processor to hold a graphics command buffer for an execution context of a compositor of a browser; second dedicated memory coupled with the graphics processor to hold a compositor command buffer for the execution context of the compositor of the browser; a display device; and the browser, having the compositor, to be operated by the general purpose processor; wherein the browser is to support a graphics application, having a plurality of Web Graphics Library (WebGL) graphics functions, to be operated by the general processor in the execution context of the compositor, and the WebGL graphic functions, in lieu of drawing graphics onto an off screen surface, are to write graphic commands for drawing the graphics into the graphics command buffer; wherein the compositor is to compose on screen displays as commanded by hypertext markup language (HTML) elements of the graphics application in an on screen surface to be rendered on the display device, wherein the execution context is bounded to the on screen surface, and wherein the compositor includes: a rendering state management module to first insert a plurality of viewport commands associated with the plurality of WebGL graphics functions into the compositor command buffer; and a graphics library command handling module to copy a plurality of graphics commands of the WebGL graphics functions, from the graphics command buffer to the compositor command buffer, after the viewport commands have been first inserted into the compositor command buffer, wherein the copied graphics commands are subsequently provided from the compositor command buffer to the graphics processor to draw the graphics onto the on screen surface.