class ImportedImages
Defined at line 67 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.h
Manages a display engine's collection of imported images.
Instances are not thread-safe, and must be used on a single thread or
synchronized dispatcher.
Public Methods
void ImportedImages (const ImportedImages & )
Defined at line 71 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.h
void ImportedImages (ImportedImages && )
Defined at line 72 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.h
ImportedImages & operator= (const ImportedImages & )
Defined at line 73 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.h
ImportedImages & operator= (ImportedImages && )
Defined at line 74 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.h
void ImportedImages (fidl::ClientEnd<fuchsia_sysmem2::Allocator> sysmem_client)
Defined at line 143 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
void ~ImportedImages ()
Defined at line 148 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
zx::result<> Initialize ()
Initialization work that is not suitable for the constructor.
Defined at line 166 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
zx::result<> ImportBufferCollection (display::DriverBufferCollectionId buffer_collection_id, fidl::ClientEnd<fuchsia_sysmem2::BufferCollectionToken> buffer_collection_token)
Similar contract to [`fuchsia.hardware.display.engine/Engine.ImportBufferCollection`].
Defined at line 189 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
zx::result<> ReleaseBufferCollection (display::DriverBufferCollectionId buffer_collection_id)
Similar contract to [`fuchsia.hardware.display.engine/Engine.ReleaseBufferCollection`].
Defined at line 227 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
zx::result<display::DriverImageId> ImportImage (display::DriverBufferCollectionId buffer_collection_id, uint32_t buffer_index)
Similar contract to [`fuchsia.hardware.display.engine/Engine.ImportImage`].
Upon success, `FindSysmemInfoById()` will return the image buffer
information retrieved from sysmem, and `FindImageById()` will return an
empty instance. The driver code calling this method should check that the
sysmem buffer and image constraints are acceptable, and should then
populate the `ImportedImage` instance with valid data.
Defined at line 240 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
zx::result<> ReleaseImage (display::DriverImageId driver_image_id)
Similar contract to [`fuchsia.hardware.display.engine/Engine.ReleaseImage`].
Defined at line 271 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
ImportedBufferCollection * FindBufferCollectionById (display::DriverBufferCollectionId buffer_collection_id)
Returns null if no collection with the given ID exists.
The returned pointer is valid until the collection is mutated by calling an
Import*() or Release*() method.
Defined at line 282 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
SysmemBufferInfo * FindSysmemInfoById (display::DriverImageId image_id)
Returns null if no imported image with the given ID exists.
The returned pointer is valid until the collection is mutated by calling an
Import*() or Release*() method.
Defined at line 291 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc
ImportedImage * FindImageById (display::DriverImageId image_id)
Returns null if no imported image with the given ID exists.
The returned pointer is valid until the collection is mutated by calling an
Import*() or Release*() method.
Defined at line 299 of file ../../src/graphics/display/drivers/virtio-gpu-display/imported-images.cc