mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make ImageManager implementation overridable (#41582)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41582 # Changelog: This will allow to have custom `ImageManager` implementations on new platforms. Reviewed By: christophpurrer Differential Revision: D51495143 fbshipit-source-id: bbd03bdad1b87fd53e70a886f1fdc74f371987c8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1e43d2b9bd
commit
ac1cdaa716
@@ -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_{};
|
||||
|
||||
Reference in New Issue
Block a user