Open Bug 1623791 Opened 5 months ago Updated 4 months ago

Simplify segment building and move to the scene building pass.

Categories

(Core :: Graphics: WebRender, task)

task
Not set
normal

Tracking

()

People

(Reporter: gw, Assigned: gw)

References

(Depends on 1 open bug)

Details

(Keywords: leave-open)

Attachments

(1 file)

No description provided.
Assignee: nobody → gwatson

Reference to why image tiles currently use segments - https://bugzilla.mozilla.org/show_bug.cgi?id=1526235

Notes to self on things we want to consider:

  • 9 patch segment / instance format.
  • Unifying glyph / primitive instance format.
  • How to handle texture UV sub-rects (and what these are currently used for).
  • Not using segment infrastructure for image tiling rendering.
  • A simpler / smaller instance format (less indirection?).
  • Making use of (unifying) this functionality for image borders, which are already 9-patches.
  • A more advanced batch instance container that can handle different instance sizes per shader - this would allow, for instance, much smaller instances for most primitives, and a larger instance for YUV primitives.
  • Primitive headers indirection is not ideal - we could remove this once segmentation is simplified to be 9-patches only. However, we need a solution for glyph rendering, since that has a similar issue (many sub-rects per overall text run primitive).

This is no longer as important, with picture caching. Removing it
will simplify the planned changes to switch to a simpler segment
model based on nine-patch rectangles during scene building.

Keywords: leave-open
Pushed by gwatson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d5fee77d845
Remove segment gridding optimization. r=nical
Regressions: 1624463
Depends on: 1633952
You need to log in before you can comment on or make changes to this bug.