calculate subsurface's bounding box

Pekka Paalanen ppaalanen at gmail.com
Fri Aug 31 08:39:55 UTC 2018


On Thu, 30 Aug 2018 18:24:31 +0800
zou lan <nancy.lan.zou at gmail.com> wrote:

> 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;
> }
> }
> }

Hi Nancy,

an interesting question, but unfortunately all that has been paged out
of my brain and I don't have the time to concentrate on that at the
moment. It might be worth a bug report to investigate.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180831/4a71dc97/attachment.sig>


More information about the wayland-devel mailing list