pub struct RenderResults {
pub stats: RendererStats,
pub recorded_dirty_regions: Vec<RecordedDirtyRegion>,
pub dirty_rects: Vec<DeviceIntRect>,
}Expand description
Return type from render(), which contains some repr(C) statistics as well as some non-repr(C) data.
Fields§
§stats: RendererStatsStatistics about the frame that was rendered.
recorded_dirty_regions: Vec<RecordedDirtyRegion>A list of dirty world rects. This is only currently useful to test infrastructure. TODO(gw): This needs to be refactored / removed.
dirty_rects: Vec<DeviceIntRect>A list of the device dirty rects that were updated this frame. TODO(gw): This is an initial interface, likely to change in future. TODO(gw): The dirty rects here are currently only useful when scrolling is not occurring. They are still correct in the case of scrolling, but will be very large (until we expose proper OS compositor support where the dirty rects apply to a specific picture cache slice / OS compositor surface).
Trait Implementations§
Source§impl Debug for RenderResults
impl Debug for RenderResults
Source§impl Default for RenderResults
impl Default for RenderResults
Source§fn default() -> RenderResults
fn default() -> RenderResults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderResults
impl RefUnwindSafe for RenderResults
impl Send for RenderResults
impl Sync for RenderResults
impl Unpin for RenderResults
impl UnwindSafe for RenderResults
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more