gecko-dev/layout/reftests/canvas
Lee Salzman 775ea303b7 Bug 1773280 - Support complex clips in DrawTargetWebgl by using a mask texture. r=aosmond,gfx-reviewers
DrawTargetWebgl currently only supports aligned rectangular clips that can be approximated
with a scissor. However, many use-cases require complex clips like rounded rectangles or
not-aligned regions. We can support these cases more generally by using a mask texture that
modulates the shader color. The mask texture is generated by doing a solid fill in the Skia
target over a clear background, which is safe because the Skia target is not in use while
the WebGL target is being rendered to. This adds one unconditional texture lookup to the
shaders which shouldn't have a big performance impact. When no clip mask is needed, we just
default to using a 1x1 solid texture.

Depends on D156224

Differential Revision: https://phabricator.services.mozilla.com/D156225
2022-09-06 05:06:18 +00:00
..
672646-alpha-radial-gradient-ref.html
672646-alpha-radial-gradient.html
674003-alpha-radial-gradient-superlum-ref.html
674003-alpha-radial-gradient-superlum.html
693610-1-notref.html
693610-1.html
726951-shadow-clips-ref.html
726951-shadow-clips.html
749467-1-ref.html
749467-1.html
784573-1-ref.html
784573-1.html
802658-1-ref.html
802658-1.html
1074733-1-ref.html
1074733-1.html
1107096-invisibles-ref.html
1107096-invisibles.html
1151821-1-ref.html
1151821-1.html
1201272-1-ref.html
1201272-1.html
1224976-1-ref.html
1224976-1.html
1238795-1-ref.html
1238795-1.html
1303534-1-ref.html
1303534-1.html
1304353-text-global-alpha-1-ref.html
1304353-text-global-alpha-1.html
1304353-text-global-alpha-2-ref.html
1304353-text-global-alpha-2.html
1304353-text-global-composite-op-1-ref.html
1304353-text-global-composite-op-1.html
1347147-1-ref.html
1347147-1.html
1353000-1-ref.html
1353000-1.html
1447035-1-ref.html
1447035-1.html
ctm-1-ref.html
ctm-1.html
ctm-sanity.html Bug 1765063 - Disable mozCurrentTransform on early beta and earlier. r=lsalzman,gfx-reviewers,emilio 2022-05-19 01:07:54 +00:00
ctm-singular-sanity.html Bug 1765063 - Disable mozCurrentTransform on early beta and earlier. r=lsalzman,gfx-reviewers,emilio 2022-05-19 01:07:54 +00:00
dash-1-ref.svg
dash-1.html
dash-sanity.html
default-size-ref.html
default-size.html
empty-transaction-1-ref.html
empty-transaction-1.html
evenodd-fill-1.html
evenodd-fill-2.html
evenodd-fill-3.html
evenodd-fill-ref.html
evenodd-fill-sanity.html
image-rendering-auto.html
image-rendering-ref.html
image-rendering-script.html
image-rendering-test.html
image-shadow-ref.html
image-shadow.html
image_green-16x16.png
large-canvas-ref.html
large-canvas.html
linear-gradient-1-ref.html
linear-gradient-1a.html
linear-gradient-1b.html
nonzero-fill-1.html
nonzero-fill-2.html
reftest.list Bug 1773280 - Support complex clips in DrawTargetWebgl by using a mask texture. r=aosmond,gfx-reviewers 2022-09-06 05:06:18 +00:00
size-1-ref.html
size-1.html
size-change-1-ref.html
size-change-1.html
strokeText-path-ref.html
strokeText-path.html
subpixel-1.html
text-bidi-ltr-notref.html
text-bidi-ltr-ref.html
text-bidi-ltr-test.html
text-bidi-rtl-ref.html
text-bidi-rtl-test.html
text-big-fill.html
text-big-stroke.html
text-blank.html
text-context-state-ref.html
text-context-state-test.html
text-emoji-notref.html
text-emoji.html
text-font-inherit.html
text-font-lang-notref.html
text-font-lang.html
text-horzline-with-bottom.html
text-horzline-with-top.html
text-horzline.html
text-indent-1-ref.html
text-indent-1a.html
text-indent-1b.html
text-ltr-alignment-ref.html
text-ltr-alignment-test.html
text-ltr-end.html
text-ltr-left.html
text-ltr-right.html
text-ltr-start.html
text-measure-ref.html
text-measure.html
text-no-frame-2-test.html
text-no-frame-ref.html
text-no-frame-test.html
text-not-in-doc-ref.html
text-not-in-doc-test.html
text-rtl-alignment-ref.html
text-rtl-alignment-test.html
text-rtl-end.html
text-rtl-left.html
text-rtl-right.html
text-rtl-start.html
text-small-caps-1-ref.html
text-small-caps-1.html
text-space-replace-ref.html
text-space-replace-test.html
text-subpixel-1-ref.html
text-subpixel-1.html
transformed-clip-ref.html
transformed-clip.html
transformed-gradient-ref.html
transformed-gradient.html
transformed-path-ref.html
transformed-path.html
zero-dimensions-ref.html
zero-dimensions.html