calculate subsurface's bounding box

zou lan nancy.lan.zou at gmail.com
Thu Aug 30 10:24:31 UTC 2018


Hi pekka & all

I find function weston_view_update_transform_enable() function will
calculate view's bounding box, but after that function,
weston_view_update_transform will update subsurface's scissor region by
parent surface's region, the code is in weston_view_transfer_scissor(). But
the sub view's bounding box is not going to recalculated.  Is it a problem?

weston_view_update_transform(struct weston_view *view)
{
.....
weston_view_update_transform_enable();
......
if (parent) {
if (parent->geometry.scissor_enabled) {
view->geometry.scissor_enabled = true;
weston_view_transfer_scissor(parent, view);
} else {
view->geometry.scissor_enabled = false;
}
}
}


Best Regards
Nancy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180830/f8d755f2/attachment-0001.html>


More information about the wayland-devel mailing list