Skip to content

Commit

Permalink
Make ImageManager implementation overridable (#41582)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #41582

# Changelog:

This will allow to have custom `ImageManager` implementations on new platforms.

Reviewed By: christophpurrer

Differential Revision: D51495143

fbshipit-source-id: bbd03bdad1b87fd53e70a886f1fdc74f371987c8
  • Loading branch information
rshest authored and facebook-github-bot committed Nov 21, 2023
1 parent 1e43d2b commit ac1cdaa
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ class ImageManager;
using SharedImageManager = std::shared_ptr<ImageManager>;

/*
* Cross platform facade for iOS-specific RCTImageManager.
* Cross platform facade for image management (e.g. iOS-specific
* RCTImageManager)
*/
class ImageManager {
public:
ImageManager(const ContextContainer::Shared& contextContainer);
~ImageManager();
virtual ~ImageManager();

ImageRequest requestImage(const ImageSource& imageSource, SurfaceId surfaceId)
const;
virtual ImageRequest requestImage(
const ImageSource& imageSource,
SurfaceId surfaceId) const;

private:
void* self_{};
Expand Down

0 comments on commit ac1cdaa

Please sign in to comment.