class FlatlandManager
Defined at line 33 of file ../../src/ui/scenic/lib/flatland/flatland_manager.h
Public Methods
void FlatlandManager (async_dispatcher_t *dispatcher,const std::shared_ptr<FlatlandPresenter> &flatland_presenter,const std::shared_ptr<UberStructSystem> &uber_struct_system,const std::shared_ptr<LinkSystem> &link_system,std::shared_ptr<display::Display>display,std::vector<std::shared_ptr<allocation::BufferCollectionImporter>>buffer_collection_importers,std::function<void (fidl::ServerEnd<fuchsia_ui_views::Focuser>, zx_koid_t)>register_view_focuser,std::function<void (fidl::ServerEnd<fuchsia_ui_views::ViewRefFocused>, zx_koid_t)>register_view_ref_focused,std::function<void (fidl::ServerEnd<fuchsia_ui_pointer::TouchSource>, zx_koid_t)>register_touch_source,std::function<void (fidl::ServerEnd<fuchsia_ui_pointer::MouseSource>, zx_koid_t)>register_mouse_source,booluse_flatland2_uberstruct_schema)
Defined at line 25 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
void ~FlatlandManager ()
Defined at line 68 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
size_t GetAliveSessionCount ()
Sessions still alive (but which might have been remove from FlatlandManager).
Defined at line 83 of file ../../src/ui/scenic/lib/flatland/flatland_manager.h
scheduling::SessionId CreateFlatland (fidl::InterfaceRequest<fuchsia::ui::composition::Flatland> flatland, const FlatlandConfig & config)
Defined at line 83 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
void CreateFlatlandDisplay (fidl::InterfaceRequest<fuchsia::ui::composition::FlatlandDisplay> flatland)
TODO(https://fxbug.dev/42156949): This creates a FlatlandDisplay attached to the "primary"
hardware display (i.e. the only one supported). In the future there will be APIs that allow
clients to enumerate the displays, and to allow creation of a FlatlandDisplay bound to a
specific one of them. For now, attempts to create a second concurrent FlatlandDisplay (or
gfx::DisplayCompositor) will fail.
Defined at line 204 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
void UpdateInstances (const std::unordered_map<scheduling::SessionId, scheduling::PresentId> & instance_to_update)
Called at FrameScheduler UpdateSessions time.
Defined at line 259 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
void SendHintsToStartRendering ()
Called at FrameScheduler OnCpuWorkDone time.
Defined at line 287 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
void OnFramePresented (const std::unordered_map<scheduling::SessionId, std::map<scheduling::PresentId, zx::time>> & latched_times, scheduling::PresentTimestamps present_times)
Called at FrameScheduler OnFramePresented time.
Defined at line 341 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
size_t GetSessionCount ()
For validating test logic.
Sessions still "owned" by FlatlandManager.
Defined at line 362 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
std::shared_ptr<FlatlandDisplay> GetPrimaryFlatlandDisplayForRendering ()
TODO(https://fxbug.dev/42156949): This is method assumes that there are either 0 or 1
displays with attached Flatland content.
Defined at line 496 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
async_dispatcher_t * GetSessionDispatcherForTest (scheduling::SessionId session_id)
Defined at line 364 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc
std::vector<scheduling::SessionId> GetSessionIdsForTest ()
Defined at line 373 of file ../../src/ui/scenic/lib/flatland/flatland_manager.cc