From b9c67d75592fb72d9dcf75a40eb0cb2462f09c4d Mon Sep 17 00:00:00 2001 From: zhushengle Date: Sat, 19 Jul 2025 16:26:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtaihe=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhushengle Change-Id: I2585fdce5b03033d62926806640fb8870964947d --- interfaces/kits/ani/webview/BUILD.gn | 2 +- .../src/webviewcontroller/ani_webview_controller.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interfaces/kits/ani/webview/BUILD.gn b/interfaces/kits/ani/webview/BUILD.gn index 6f9370cce..38943d9f6 100644 --- a/interfaces/kits/ani/webview/BUILD.gn +++ b/interfaces/kits/ani/webview/BUILD.gn @@ -160,7 +160,7 @@ ohos_shared_library("webview_ani") { "image_framework:image", "image_framework:image_native", "image_framework:image_ani", - #"image_framework:image_taihe", + "image_framework:image_taihe", "init:libbegetutil", "ipc:ipc_core", "napi:ace_napi", diff --git a/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp b/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp index 01b6f34f4..d89aee886 100644 --- a/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp +++ b/interfaces/kits/ani/webview/src/webviewcontroller/ani_webview_controller.cpp @@ -59,7 +59,7 @@ #include "web_download_manager.h" #include "pixel_map.h" #include "pixel_map_ani.h" -// #include "pixel_map_taihe_ani.h" +#include "pixel_map_taihe_ani.h" #include "proxy_config.h" #include "ani_parse_utils.h" #include "web_scheme_handler_response.h" @@ -2941,8 +2941,8 @@ WebSnapshotCallback CreateWebPageSnapshotResultCallback( uint64_t stride = static_cast(returnWidth) << 2; uint64_t bufferSize = stride * static_cast(returnHeight); pixelMap->WritePixels(static_cast(returnData), bufferSize); - // std::shared_ptr pixelMapToJs(pixelMap.release()); - // jsPixelMap = OHOS::Media::PixelMapTaiheAni::CreateEtsPixelMap(env, pixelMapToJs); + std::shared_ptr pixelMapToJs(pixelMap.release()); + jsPixelMap = OHOS::Media::PixelMapTaiheAni::CreateEtsPixelMap(env, pixelMapToJs); } else { WVLOG_E("WebPageSnapshot create pixel map error"); } -- Gitee