Skip to content

Commit

Permalink
NDKBitmap: Turn on x86 support & update libndkbitmap.so
Browse files Browse the repository at this point in the history
  • Loading branch information
xqq committed Apr 7, 2015
1 parent c5b6cfa commit 77350c9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,9 @@ public static boolean isRealARMArch() {
return (supportABI("armeabi-v7a") || supportABI("armeabi")) && ARCH.ARM.equals(arch);
}

public static boolean isRealX86Arch() {
ARCH arch = getMyCpuArch();
return supportABI(ABI_X86) || ARCH.X86.equals(arch);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static boolean isInNativeAlloc() {
}

public static void loadLibs() {
if (!DeviceUtils.isRealARMArch()) {
if (!(DeviceUtils.isRealARMArch() || DeviceUtils.isRealX86Arch())) {
nativeLibLoaded = false;
return;
}
Expand Down
Binary file modified DanmakuFlameMaster/src/main/libs/armeabi-v7a/libndkbitmap.so
Binary file not shown.
Binary file modified DanmakuFlameMaster/src/main/libs/armeabi/libndkbitmap.so
Binary file not shown.
Binary file modified DanmakuFlameMaster/src/main/libs/mips/libndkbitmap.so
Binary file not shown.
Binary file modified DanmakuFlameMaster/src/main/libs/x86/libndkbitmap.so
Binary file not shown.

0 comments on commit 77350c9

Please sign in to comment.