Skip to content

Commit

Permalink
[fuchsia] Add flutter:: to scene_host.cc (flutter#8549)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Apr 11, 2019
1 parent 711d843 commit a344015
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit a344015

Please sign in to comment.