Closed Bug 1623791 Opened 4 years ago Closed 3 years ago

Remove segment gridding optimization

Categories

(Core :: Graphics: WebRender, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gw, Assigned: gw)

References

Details

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

The leave-open keyword is there and there is no activity for 6 months.
:gw, maybe it's time to close this bug?

Flags: needinfo?(gwatson)

This is still relevant, but low down the priority list for now.

Flags: needinfo?(gwatson)
Keywords: leave-open
Regressions: 1685943

Since a patch was landed and there are regressions tracked against that change, maybe this bug should be closed and a new bug can be opened for followup work. It's confusing when this is listed as the regressing bug, but it's stilled marked as NEW.

Flags: needinfo?(gwatson)
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(gwatson)
Resolution: --- → FIXED
Summary: Simplify segment building and move to the scene building pass. → Remove segment gridding optimization
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: