mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-17 18:46:21 +08:00
Summary: ImageLoader is an actual external dependency, not a ImageManager. That change allows to remove dependency on ImageManager from SurfacePresenter and make some other code simpler. Reviewed By: mdvacca Differential Revision: D15242047 fbshipit-source-id: 8622d15b8fdb5c3a7e25091adf7be1108f87ecd5
30 lines
662 B
C++
30 lines
662 B
C++
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "ImageManager.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
ImageManager::ImageManager(ContextContainer::Shared const &contextContainer) {
|
|
// Silence unused-private-field warning.
|
|
(void)self_;
|
|
// Not implemented.
|
|
}
|
|
|
|
ImageManager::~ImageManager() {
|
|
// Not implemented.
|
|
}
|
|
|
|
ImageRequest ImageManager::requestImage(const ImageSource &imageSource) const {
|
|
// Not implemented.
|
|
return ImageRequest(imageSource);
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|