Struct webrender::render_api::AddBlobImage
source · pub struct AddBlobImage {
pub key: BlobImageKey,
pub descriptor: ImageDescriptor,
pub data: Arc<BlobImageData>,
pub visible_rect: DeviceIntRect,
pub tile_size: TileSize,
}
Expand description
Creates a blob-image resource with provided parameters.
Must be matched with a DeleteImage
at some point to prevent memory leaks.
Fields§
§key: BlobImageKey
A key to identify the blob-image resource.
descriptor: ImageDescriptor
Properties of the image.
data: Arc<BlobImageData>
The blob-image’s serialized commands.
visible_rect: DeviceIntRect
The portion of the plane in the blob-image’s internal coordinate system that is stretched to fill the image display item.
Unlike regular images, blob images are not limited in size. The top-left corner of their internal coordinate system is also not necessary at (0, 0). This means that blob images can be updated to insert/remove content in any direction to support panning and zooming.
tile_size: TileSize
The blob image’s tile size to apply when rasterizing the blob-image and when storing its rasterized data on the GPU. Applies to both width and heights of the tiles.
All blob images are tiled.
Trait Implementations§
source§impl Clone for AddBlobImage
impl Clone for AddBlobImage
source§fn clone(&self) -> AddBlobImage
fn clone(&self) -> AddBlobImage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for AddBlobImage
impl<'de> Deserialize<'de> for AddBlobImage
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 AddBlobImage
impl RefUnwindSafe for AddBlobImage
impl Send for AddBlobImage
impl Sync for AddBlobImage
impl Unpin for AddBlobImage
impl UnwindSafe for AddBlobImage
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> 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