!17345 修复三方应用picker图片过曝

Merge pull request !17345 from jimsu7/master
This commit is contained in:
openharmony_ci 2024-11-22 12:35:33 +00:00 committed by Gitee
commit 7efc6d35d3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -68,7 +68,8 @@ RSSurfaceNode::SharedPtr RSSurfaceNode::Create(const RSSurfaceNodeConfig& surfac
RSNodeMap::MutableInstance().RegisterNode(node);
RS_LOGD("RSSurfaceNode::Create HDRClient name: %{public}s, type: %{public}hhu, id: %{public}" PRIu64,
node->name_.c_str(), type, node->GetId());
if (type == RSSurfaceNodeType::APP_WINDOW_NODE || type == RSSurfaceNodeType::UI_EXTENSION_COMMON_NODE) {
if (type == RSSurfaceNodeType::APP_WINDOW_NODE || type == RSSurfaceNodeType::UI_EXTENSION_COMMON_NODE ||
type == RSSurfaceNodeType::UI_EXTENSION_SECURE_NODE) {
auto callback = &RSSurfaceNode::SetHDRPresent;
RSHDRManager::Instance().RegisterSetHDRPresent(callback, node->GetId());
}