rename PtrJNodeMap to PtrJNodeMapVanilla in yoga vanilla jni files
Summary: Rename PtrJNodeMap in vanilla files top PtrJNodeMapVanilla , otherwise they conflict Reviewed By: amir-shalem Differential Revision: D17842001 fbshipit-source-id: eb164076ee2a68d79dc376826508a4143056ea31
This commit is contained in:
committed by
Facebook Github Bot
parent
8aa67abdb2
commit
050893f15a
@@ -21,7 +21,7 @@ using facebook::yoga::detail::Log;
|
|||||||
static inline ScopedLocalRef<jobject> YGNodeJobject(
|
static inline ScopedLocalRef<jobject> YGNodeJobject(
|
||||||
YGNodeRef node,
|
YGNodeRef node,
|
||||||
void* layoutContext) {
|
void* layoutContext) {
|
||||||
return reinterpret_cast<PtrJNodeMap*>(layoutContext)
|
return reinterpret_cast<PtrJNodeMapVanilla*>(layoutContext)
|
||||||
->ref(getCurrentEnv(), node);
|
->ref(getCurrentEnv(), node);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -353,13 +353,13 @@ static void jni_YGNodeCalculateLayoutJNI(
|
|||||||
jobjectArray javaNodes) {
|
jobjectArray javaNodes) {
|
||||||
|
|
||||||
void* layoutContext = nullptr;
|
void* layoutContext = nullptr;
|
||||||
auto map = PtrJNodeMap{};
|
auto map = PtrJNodeMapVanilla{};
|
||||||
if (nativePointers) {
|
if (nativePointers) {
|
||||||
size_t nativePointersSize = env->GetArrayLength(nativePointers);
|
size_t nativePointersSize = env->GetArrayLength(nativePointers);
|
||||||
jlong result[nativePointersSize];
|
jlong result[nativePointersSize];
|
||||||
env->GetLongArrayRegion(nativePointers, 0, nativePointersSize, result);
|
env->GetLongArrayRegion(nativePointers, 0, nativePointersSize, result);
|
||||||
|
|
||||||
map = PtrJNodeMap{result, nativePointersSize, javaNodes};
|
map = PtrJNodeMapVanilla{result, nativePointersSize, javaNodes};
|
||||||
layoutContext = ↦
|
layoutContext = ↦
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,13 +13,13 @@
|
|||||||
using namespace facebook::yoga::vanillajni;
|
using namespace facebook::yoga::vanillajni;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
class PtrJNodeMap {
|
class PtrJNodeMapVanilla {
|
||||||
std::map<YGNodeRef, size_t> ptrsToIdxs_;
|
std::map<YGNodeRef, size_t> ptrsToIdxs_;
|
||||||
jobjectArray javaNodes_;
|
jobjectArray javaNodes_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PtrJNodeMap() : ptrsToIdxs_{}, javaNodes_{} {}
|
PtrJNodeMapVanilla() : ptrsToIdxs_{}, javaNodes_{} {}
|
||||||
PtrJNodeMap(
|
PtrJNodeMapVanilla(
|
||||||
jlong* nativePointers,
|
jlong* nativePointers,
|
||||||
size_t nativePointersSize,
|
size_t nativePointersSize,
|
||||||
jobjectArray javaNodes)
|
jobjectArray javaNodes)
|
||||||
|
Reference in New Issue
Block a user