Add Chromium-only Blender WebEngine parity work
This commit is contained in:
26
blender-5.2.0/intern/cycles/blender/implicit_sharing.cpp
Normal file
26
blender-5.2.0/intern/cycles/blender/implicit_sharing.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/* SPDX-FileCopyrightText: 2026 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
#include "util/implicit_sharing.h"
|
||||
|
||||
#include "BLI_implicit_sharing.hh"
|
||||
|
||||
#include "blender/CCL_api.h"
|
||||
|
||||
namespace blender {
|
||||
|
||||
void CCL_implicit_sharing_init()
|
||||
{
|
||||
ccl::implicit_sharing_init(
|
||||
[](ccl::ImplicitSharingInfo data) {
|
||||
const auto *info = static_cast<const blender::ImplicitSharingInfo *>(data);
|
||||
info->add_user();
|
||||
},
|
||||
[](ccl::ImplicitSharingInfo data) {
|
||||
const auto *info = static_cast<const blender::ImplicitSharingInfo *>(data);
|
||||
info->remove_user_and_delete_if_last();
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace blender
|
||||
Reference in New Issue
Block a user