Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/ui/compositing/scene_host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

namespace {

using SceneHostBindings = std::unordered_map<zx_koid_t, SceneHost*>;
using SceneHostBindings = std::unordered_map<zx_koid_t, flutter::SceneHost*>;

FML_THREAD_LOCAL fml::ThreadLocal tls_scene_host_bindings([](intptr_t value) {
delete reinterpret_cast<SceneHostBindings*>(value);
});

void SceneHost_constructor(Dart_NativeArguments args) {
tonic::DartCallConstructor(&SceneHost::Create, args);
tonic::DartCallConstructor(&flutter::SceneHost::Create, args);
}

void SceneHost_constructorViewHolderToken(Dart_NativeArguments args) {
Expand All @@ -36,10 +36,10 @@ void SceneHost_constructorViewHolderToken(Dart_NativeArguments args) {
reinterpret_cast<intptr_t>(new SceneHostBindings()));
}

tonic::DartCallConstructor(&SceneHost::CreateViewHolder, args);
tonic::DartCallConstructor(&flutter::SceneHost::CreateViewHolder, args);
}

SceneHost* GetSceneHost(scenic::ResourceId id) {
flutter::SceneHost* GetSceneHost(scenic::ResourceId id) {
auto* bindings =
reinterpret_cast<SceneHostBindings*>(tls_scene_host_bindings.Get());
FML_DCHECK(bindings);
Expand Down