class ImageCache
Defined at line 29 of file ../../src/ui/lib/escher/impl/image_cache.h
Allow client to obtain new or recycled Images. All Images obtained from an
ImageCache must be destroyed before the ImageCache is destroyed.
TODO(https://fxbug.dev/42097842): this does not prune entries!! Once a new Image is created, it
will live until the cache is destroyed!!
Public Methods
void ImageCache (EscherWeakPtr escher, GpuAllocator * allocator)
The allocator is used to allocate memory for newly-created images.
Defined at line 15 of file ../../src/ui/lib/escher/impl/image_cache.cc
void ~ImageCache ()
Defined at line 20 of file ../../src/ui/lib/escher/impl/image_cache.cc
ImagePtr NewImage (const ImageInfo & info, GpuMemPtr * out_ptr)
|ImageFactory|
Obtain an unused Image with the required properties. A new Image might be
created, or an existing one reused.
Defined at line 22 of file ../../src/ui/lib/escher/impl/image_cache.cc