mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d4e1202b4e
Summary: * Create `ImageTelemetry` as a property of ImageRequest to pass image metadata from the ImageShadowNode into RCTImageComponentView * ImageRequest is a object in the ImageShadowNode::ConcreteState Reviewed By: fkgozali Differential Revision: D23239664 fbshipit-source-id: db0f08bb889af8ce63fbe1abe88744edddb86150
27 lines
588 B
C++
27 lines
588 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 "ImageTelemetry.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
SurfaceId ImageTelemetry::getSurfaceId() const {
|
|
return surfaceId_;
|
|
}
|
|
|
|
std::string ImageTelemetry::getLoaderModuleName() const {
|
|
return loaderModuleName_;
|
|
}
|
|
|
|
void ImageTelemetry::setLoaderModuleName(std::string const &loaderModuleName) {
|
|
loaderModuleName_ = loaderModuleName;
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|