class FlatlandPresenterImpl
Defined at line 24 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.h
Public Methods
void FlatlandPresenterImpl (async_dispatcher_t * main_dispatcher, scheduling::FrameScheduler & frame_scheduler)
The |main_dispatcher| must be the dispatcher that GFX sessions run and update on. That thread
is typically refered to as the "main thread" or "render thread".
FrameScheduler is what FlatlandPresenterImpl will use for frame scheduling calls.
Defined at line 18 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.cc
void ScheduleUpdateForSession (zx::time requested_presentation_time, scheduling::SchedulingIdPair id_pair, bool unsquashable, std::vector<zx::event> release_fences, std::vector<zx::counter> present_fences, bool schedule_asap)
|FlatlandPresenter|
Defined at line 57 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.cc
std::vector<scheduling::FuturePresentationInfo> GetFuturePresentationInfos ()
|FlatlandPresenter|.
Defined at line 79 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.cc
void RemoveSession (scheduling::SessionId session_id, std::optional<zx::event> release_fence)
|FlatlandPresenter|
Defined at line 85 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.cc
void AccumulateFences (const std::unordered_map<scheduling::SessionId, scheduling::PresentId> & sessions_to_update)
Called at FrameScheduler's UpdateSessions() time.
Takes the fences up to the corresponding PresentId for each SessionId in |sessions_to_update|
and moves them to an internal set of "accumulated" fences. These fences can be retrieved
by the caller at any time via TakeFences(), which clears the accumulated fences. This scheme
allows the accumulation of fences for multiple UpdateSessions() calls per frame.
Defined at line 22 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.cc
Fences TakeFences ()
Return all fences that were accumulated during calls to UpdateSessions(). The caller
takes responsibility for signaling these fences at the appropriate time (see comments on
`struct Fences`).
Defined at line 49 of file ../../src/ui/scenic/lib/flatland/flatland_presenter_impl.cc