mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Now that tonic doesn't depend on anything in //sky/engine anymore, we can move the code to a location where its dependencies are clearer.
21 lines
520 B
C++
21 lines
520 B
C++
// Copyright 2016 The Chromium 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_TONIC_DART_MICROTASK_QUEUE_H_
|
|
#define FLUTTER_TONIC_DART_MICROTASK_QUEUE_H_
|
|
|
|
#include "dart/runtime/include/dart_api.h"
|
|
|
|
namespace blink {
|
|
|
|
class DartMicrotaskQueue {
|
|
public:
|
|
static void ScheduleMicrotask(Dart_Handle callback);
|
|
static void RunMicrotasks();
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // FLUTTER_TONIC_DART_MICROTASK_QUEUE_H_
|