Closed Bug 1916907 Opened 1 year ago Closed 1 year ago

Support linear gradient in Accelerated Canvas2D

Categories

(Core :: Graphics: Canvas2D, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

No description provided.
Blocks: gpu-canvas
Severity: -- → N/A

This attempts to map linear gradient to 1D textures of sufficient resolution
for a given rendered primitive. The 1D texture can then be rendered using
the image shader, without having to add any specialized gradient shaders.

The 1D ramp textures are much smaller than uploading a texture for an entire
fallback primitive, which becomes a significant performance benefit in the
case of primitives that take up a large area on screen.

In the future it might be possible to cache these ramp textures, but for now
they remain uncached.

Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Blocks: 1901708
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/36c29f0fa528 Support linear gradients in DrawTargetWebgl. r=aosmond
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: