Closed Bug 1900022 Opened 6 months ago Closed 6 months ago

Various quad shader cleanups

Categories

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

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

No description provided.

I think that it's more informative to explain what the clip represents than its coordinate space in the name of the flag. The documentation for the flag is extended to explain the coordinate space and its relation with the render task rect.

Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED

It gives a bit more context about where the function fits in the overall pipeline (the prepare phase).

The feature could be used by other shaders, for example gradient masks currently fall back to blob images but we should use shaders for them instead.

The new names better match what the functions are about. There used to be a 1-1 relation betwee transforms and antialiasing, but that's not true anymore with SVG rects.

Attachment #9405020 - Attachment description: WIP: Bug 1900022 - Rename push_quad into prepare_quad. r-gw → Bug 1900022 - Rename push_quad into prepare_quad. r=gw
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f85989337c8c Rename APPLY_DEVICE_CLIP into APPLY_RENDER_TASK_CLIP. r=gw https://hg.mozilla.org/integration/autoland/rev/073e06f01543 Rename push_quad into prepare_quad. r=gw https://hg.mozilla.org/integration/autoland/rev/1ce108503e31 Explain what coordinate space is involved for each quad rendering strategy. r=gw https://hg.mozilla.org/integration/autoland/rev/aa4913edc4ea Rename SAMPLE_AS_MASK into IS_MASK and move to the base quad shader. r=gw https://hg.mozilla.org/integration/autoland/rev/b60f14d8d3d8 Rename init_transfom_vs/fs into rectangle_aa_vertex/fragment. r=gw
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: