[][src]Enum webrender_api::ResourceUpdate

pub enum ResourceUpdate {
    AddImage(AddImage),
    UpdateImage(UpdateImage),
    AddBlobImage(AddBlobImage),
    UpdateBlobImage(UpdateBlobImage),
    DeleteImage(ImageKey),
    SetBlobImageVisibleArea(BlobImageKeyDeviceIntRect),
    AddFont(AddFont),
    DeleteFont(FontKey),
    AddFontInstance(AddFontInstance),
    DeleteFontInstance(FontInstanceKey),
}

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(BlobImageKeyDeviceIntRect)

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

impl Clone for ResourceUpdate[src]

impl Debug for ResourceUpdate[src]

impl<'de> Deserialize<'de> for ResourceUpdate[src]

impl Serialize for ResourceUpdate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.