发明名称 Text rendering for browsers and mobile based applications
摘要 A system and method for rendering text data in web applications is provided that eliminates redundant processing. Constant resources are pre-computed and work is offloaded from the central processing unit to the graphics processing unit. This is generally accomplished by pre-computing before any rendering. A generic index vertex buffer object is created, and for each font, a glyph texture object and glyph position texture object are created. A frame including text is then rendered in which a glyph string texture object is created. For each character, a glyph index-to-texture and glyph offset to-texture is appended. A glyph texture, glyph position texture and glyph string texture are then bound, and the generic index vertex buffer object using a custom vertex shader is rendered.
申请公布号 US8988434(B1) 申请公布日期 2015.03.24
申请号 US201213445581 申请日期 2012.04.12
申请人 Google Inc. 发明人 Roth Ian
分类号 G06T11/00 主分类号 G06T11/00
代理机构 Ropes & Gray LLP 代理人 Ropes & Gray LLP
主权项 1. A method for rendering text in an application executed on a processing device, which includes a central processor and a graphics processor, the method comprising: generating, by the central processor, passive graphics processor text resources prior to real-time text rendering by the graphics processor; storing the generated passive graphics processor text resources in a graphics processor memory, prior to the real-time text rendering by the graphics processor; generating, by the central processor in real-time, active graphics processor text resources for use by the graphics processor, which are different from the generated passive graphics processor text resources stored in the graphics processor memory; transmitting the generated active graphics processor text resources to the graphics processor; and rendering text, by the graphics processor, during execution of the application by using the generated active graphics processor text resources and generated passive graphics processor text resources designated by the generated active graphics processor text resources.
地址 Mountain View CA US