!10883 修复跨平台pixelmap crash

Merge pull request !10883 from lmy/pixelmap
This commit is contained in:
openharmony_ci 2024-05-10 01:14:32 +00:00 committed by Gitee
commit 19102f084c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 22 additions and 1 deletions

View File

@ -406,6 +406,13 @@ ohos_source_set("render_service_base_src") {
"$graphic_2d_root/utils/log",
]
if (is_arkui_x) {
include_dirs += [
"$graphic_2d_root/utils/color_manager/export",
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
]
}
include_dirs += [ "//third_party/skia/src" ]
deps = [

View File

@ -29,6 +29,13 @@ config("render_service_client_config") {
"$graphic_2d_root/rosen/modules/2d_graphics",
]
defines = rs_common_define
if (defined(is_arkui_x) && is_arkui_x) {
include_dirs += [
"$graphic_2d_root/utils/color_manager/export",
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
]
}
}
template("render_service_client_source_set") {
@ -60,6 +67,13 @@ template("render_service_client_source_set") {
"$graphic_2d_root/utils/sandbox",
]
if (defined(is_arkui_x) && is_arkui_x) {
include_dirs += [
"$graphic_2d_root/utils/color_manager/export",
"//foundation/multimedia/image_framework/interfaces/innerkits/include",
]
}
sources = [
#animation
"core/animation/rs_animation.cpp",

View File

@ -269,7 +269,7 @@ PixelMap* ImageSource::Unmarshalling(uint64_t id, Parcel& parcel)
return nullptr;
}
#if !defined(_WIN32) && !defined(_APPLE) && !defined(IOS_PLATFORM) && !defined(A_PLATFORM)
#if !defined(_WIN32) && !defined(_APPLE) && !defined(IOS_PLATFORM) && !defined(ANDROID_PLATFORM)
if (context.allocType == AllocatorType::SHARE_MEM_ALLOC) {
if (!UnmarshallFromSharedMem(context)) {
return nullptr;