mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
backdrop.comp: support stroked Annotated_Image and Annotated_BeginClip
Commit 8db77e180e
added support for
strokes to FillImage and BeginClip, but missed backdrop.comp.
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
parent
678bfedfca
commit
d916a9e2c4
|
@ -48,13 +48,13 @@ void main() {
|
||||||
if (element_ix < conf.n_elements) {
|
if (element_ix < conf.n_elements) {
|
||||||
AnnotatedTag tag = Annotated_tag(conf.anno_alloc, ref);
|
AnnotatedTag tag = Annotated_tag(conf.anno_alloc, ref);
|
||||||
switch (tag.tag) {
|
switch (tag.tag) {
|
||||||
|
case Annotated_Image:
|
||||||
|
case Annotated_BeginClip:
|
||||||
case Annotated_Color:
|
case Annotated_Color:
|
||||||
if (fill_mode_from_flags(tag.flags) != MODE_NONZERO) {
|
if (fill_mode_from_flags(tag.flags) != MODE_NONZERO) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Fall through.
|
// Fall through.
|
||||||
case Annotated_Image:
|
|
||||||
case Annotated_BeginClip:
|
|
||||||
PathRef path_ref = PathRef(conf.tile_alloc.offset + element_ix * Path_size);
|
PathRef path_ref = PathRef(conf.tile_alloc.offset + element_ix * Path_size);
|
||||||
Path path = Path_read(conf.tile_alloc, path_ref);
|
Path path = Path_read(conf.tile_alloc, path_ref);
|
||||||
sh_row_width[th_ix] = path.bbox.z - path.bbox.x;
|
sh_row_width[th_ix] = path.bbox.z - path.bbox.x;
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue