Open Bug 1623791 Opened 5 months ago Updated 4 months ago

Simplify segment building and move to the scene building pass.


(Core :: Graphics: WebRender, task)

Not set




(Reporter: gw, Assigned: gw)


(Depends on 1 open bug)


(Keywords: leave-open)


(1 file)

No description provided.
Assignee: nobody → gwatson

Reference to why image tiles currently use segments -

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
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.