BasicSurface is an internal implementation class that shouldn't be
exposed, and isn't. So that's correct.

If you look at Mir's src/server/compositor/* you will see all the
compositor logic including several uses of should_be_rendered_in(), and
none of it uses BasicSurface at all. Just higher-level interfaces.

I'm not sure if we're failing to expose some other interfaces required
to get at CompositingCriteria...? That's all you need to test
should_be_rendered_in(). Pass it a rectangle such as the current
DisplayBuffer's view_area(). It's not a great interface I know, because
its name doesn't even hint that it tests other things like buffer
readiness and the hidden flag. But it does.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1280842

Title:
  [enhancement] Need a method of hiding surfaces until they are ready to
  draw themselves

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1280842/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to