Enum webrender::render_api::ResourceUpdate
source · pub enum ResourceUpdate {
AddImage(AddImage),
UpdateImage(UpdateImage),
DeleteImage(ImageKey),
AddBlobImage(AddBlobImage),
UpdateBlobImage(UpdateBlobImage),
DeleteBlobImage(BlobImageKey),
SetBlobImageVisibleArea(BlobImageKey, DeviceIntRect),
AddFont(AddFont),
DeleteFont(FontKey),
AddFontInstance(AddFontInstance),
DeleteFontInstance(FontInstanceKey),
}
Expand description
Update of a persistent resource in WebRender.
ResourceUpdate changes keep theirs effect across display list changes.
Variants§
AddImage(AddImage)
See AddImage
.
UpdateImage(UpdateImage)
See UpdateImage
.
DeleteImage(ImageKey)
Delete an existing image resource.
It is invalid to continue referring to the image key in any display list
in the transaction that contains the DeleteImage
message and subsequent
transactions.
AddBlobImage(AddBlobImage)
See AddBlobImage
.
UpdateBlobImage(UpdateBlobImage)
See UpdateBlobImage
.
DeleteBlobImage(BlobImageKey)
Delete existing blob image resource.
SetBlobImageVisibleArea(BlobImageKey, DeviceIntRect)
See AddBlobImage::visible_area
.
AddFont(AddFont)
See AddFont
.
DeleteFont(FontKey)
Deletes an already existing font resource.
It is invalid to continue referring to the font key in any display list
in the transaction that contains the DeleteImage
message and subsequent
transactions.
AddFontInstance(AddFontInstance)
See AddFontInstance
.
DeleteFontInstance(FontInstanceKey)
Deletes an already existing font instance resource.
It is invalid to continue referring to the font instance in any display
list in the transaction that contains the DeleteImage
message and
subsequent transactions.
Trait Implementations§
source§impl Clone for ResourceUpdate
impl Clone for ResourceUpdate
source§fn clone(&self) -> ResourceUpdate
fn clone(&self) -> ResourceUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceUpdate
impl Debug for ResourceUpdate
source§impl<'de> Deserialize<'de> for ResourceUpdate
impl<'de> Deserialize<'de> for ResourceUpdate
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ResourceUpdate
impl RefUnwindSafe for ResourceUpdate
impl Send for ResourceUpdate
impl Sync for ResourceUpdate
impl Unpin for ResourceUpdate
impl UnwindSafe for ResourceUpdate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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