ui::Layer::SetShowSurface is a bit clunky in that it requires a lot of parameters and callbacks. The Require and Satisfy callbacks look like they're all usually the same (and they're all going to change with Surface references anyway). Maybe it might make sense to instead take in a "SurfaceInfo" object that contains a bundle of these things and methods that can be called to add and remove references. There could be a Mojo implementation that does IPC and a local implementation that does a method call.
Comment 1 by fsam...@chromium.org
, Nov 10 2016Status: Assigned (was: Untriaged)