mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-07 17:37:34 +08:00
Summary: ImageManager is used to update the LocalData of Image views, as part of this process we call ImageManager::requestImage in cross platform code. Event if Android doesn't use ImageRequest we need to return an empty non-operation version of this object. Reviewed By: shergin Differential Revision: D10429663 fbshipit-source-id: 3621ece72f7291e2e6ab6a84b238ac16b595fc18
38 lines
849 B
C++
38 lines
849 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 "ImageRequest.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
ImageRequest::ImageRequest() {}
|
|
|
|
ImageRequest::ImageRequest(
|
|
const ImageSource &imageSource,
|
|
folly::Future<ImageResponse> &&responseFuture) {
|
|
// Not implemented.
|
|
}
|
|
|
|
ImageRequest::ImageRequest(ImageRequest &&other) noexcept
|
|
: imageSource_(std::move(other.imageSource_)),
|
|
responseFutureSplitter_(std::move(other.responseFutureSplitter_)) {
|
|
// Not implemented.
|
|
}
|
|
|
|
ImageRequest::~ImageRequest() {
|
|
// Not implemented.
|
|
}
|
|
|
|
folly::Future<ImageResponse> ImageRequest::getResponseFuture() const {
|
|
// Not implemented.
|
|
abort();
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|