pub struct Flatland { /* private fields */ }
Implementations§
Source§impl Flatland
impl Flatland
A thin wrapper around FlatlandProxy
, which currently exits
to allocate transform/content ids, and implement flow events
for present
calls.
Scenic will maintain it’s own present counter so we need to ensure each an every present call increments the trace_id otherwise our traces will not be generated correctly.
pub fn new(flatland: FlatlandProxy) -> FlatlandPtr
pub fn id(&self) -> FlatlandInstanceId
pub fn proxy(&self) -> &FlatlandProxy
pub fn add_release_fence(&mut self, fence: Event)
pub fn present(&mut self, presentation_time: i64)
pub fn alloc_transform_id(&mut self) -> TransformId
pub fn alloc_content_id(&mut self) -> ContentId
pub fn alloc_trace_id(&mut self) -> Id
Auto Trait Implementations§
impl Freeze for Flatland
impl !RefUnwindSafe for Flatland
impl Send for Flatland
impl Sync for Flatland
impl Unpin for Flatland
impl !UnwindSafe for Flatland
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more