The buffer transform must not be updated by both wl_surface protocol and
viewporter API at the same time. It has to be handled exclusively.
Change-Id: I89ef435298c9d5020a3df8786c6c2e2c9da283c3
{
int32_t transform = surface->ds_surface->current.transform;
+ if (surface->viewporter.acquired)
+ {
+ ELOGF("SURFACE", "Cannot update buffer transform(%d), viewporter has been acquired.",
+ surface->ec, transform);
+ return;
+ }
+
surface->base.pending.buffer_viewport.buffer.transform = transform;
surface->base.pending.buffer_viewport.changed = 1;
}