mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
* 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
24 lines
498 B
C++
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_
|