Chromium Code Reviews
DescriptionVR: Avoiding regeneration of RenderText objects for texture rendering
- Code is based in gfx::Canvas::DrawStringRectWithFlags, but tailored for VR needs and instead of drawing, it returns a list of RenderText.
- For textures that require text measurement, both the measurement and drawing is done in a single pass.
- Being the text layout the most expensive operation for texture rendering, times are reduced to almost half.
BUG=715591
Review-Url: https://codereview.chromium.org/2877673005
Cr-Commit-Position: refs/heads/master@{#471503}
Committed: https://chromium.googlesource.com/chromium/src/+/b40dc0c1f2fea886a3184e9c3265c9d9f8d7275f
Patch Set 1 #
Total comments: 18
Patch Set 2 : address suggestions #
Total comments: 1
Patch Set 3 : removing unnecessary comment #
Dependent Patchsets: Messages
Total messages: 21 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||