Open Bug 1687337 Opened 4 years ago Updated 6 months ago

Caching primitives requires a lot of boilerplate code

Categories

(Core :: Graphics: WebRender, task, P3)

task

Tracking

()

People

(Reporter: nical, Unassigned)

References

(Blocks 1 open bug)

Details

We have several primitives that do or will use cached render tasks to be rendered via a brush_image shader. The logic to do this has to be duplicated and touches a lot of places in the code.

Ideally we'd have something a bit more generic to render an arbitrary primitive into the cache, render it via a brush image with only a bit of custom code to decide when to trigger this optimization and how to build the cache key.

Blocks: wr-todos
No longer blocks: gfx-complexity
You need to log in before you can comment on or make changes to this bug.