Use the tonic::HandleTable (flutter/engine#3924)

This commit is contained in:
Ian McKellar
2017-07-26 12:19:34 -07:00
committed by GitHub
parent adef60fe5a
commit 4ab42e4358

View File

@@ -8,6 +8,10 @@
#include "lib/tonic/dart_binding_macros.h"
#include "lib/tonic/dart_library_natives.h"
#if defined(OS_FUCHSIA)
#include "lib/tonic/handle_table.h"
#endif
namespace blink {
static void SceneHost_constructor(Dart_NativeArguments args) {
@@ -31,7 +35,8 @@ ftl::RefPtr<SceneHost> SceneHost::create(int export_token_handle) {
SceneHost::SceneHost(int export_token_handle) {
#if defined(OS_FUCHSIA)
export_node_ = ftl::MakeRefCounted<flow::ExportNode>(export_token_handle);
export_node_ = ftl::MakeRefCounted<flow::ExportNode>(
tonic::HandleTable::Current().Unwrap(export_token_handle));
#endif
}