flutter_flutter/lib/ui/dart_ui.h
Alexander Aprelev 1c8ee9856b
Introduce runtime check that it is root isolate that makes UI native calls. (#18050)
* Revert "Do not register UI-related native functions in secondary isolates (#6401)"

This reverts commit 69ae5694de54d2a163743dcec727fcea1c7bc8e1 as it doesn't work when root and secondary isolates run in the same isolate group.

* Confirm it is root isolate that makes UI native calls.

* Fix format, UIDartState reference from Fuchsia source

* No UI isolate check for fuchsia calls

* Fix typo. Remove redundant runtime calls
2020-05-01 09:05:41 -07:00

24 lines
498 B
C++

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_LIB_UI_DART_UI_H_
#define FLUTTER_LIB_UI_DART_UI_H_
#include "flutter/fml/macros.h"
namespace flutter {
class DartUI {
public:
static void InitForGlobal();
static void InitForIsolate();
private:
FML_DISALLOW_IMPLICIT_CONSTRUCTORS(DartUI);
};
} // namespace flutter
#endif // FLUTTER_LIB_UI_DART_UI_H_