pub enum ResourceUpdate {
AddImage(AddImage),
UpdateImage(UpdateImage),
AddBlobImage(AddBlobImage),
UpdateBlobImage(UpdateBlobImage),
DeleteImage(ImageKey),
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
.
AddBlobImage(AddBlobImage)
See AddBlobImage
.
UpdateBlobImage(UpdateBlobImage)
See UpdateBlobImage
.
DeleteImage(ImageKey)
Delete an existing image or blob-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.
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 more