mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Moving the microtask queue into tonic solves three problems: 1) Removes three levels of indirection when invoking microtask callbacks. 2) Removes the sky/engine/dom directory entirely. 3) Removes the last client of the (inefficient) DartValue class.
21 lines
529 B
C++
21 lines
529 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 SKY_ENGINE_TONIC_DART_MICROTASK_QUEUE_H_
|
|
#define SKY_ENGINE_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 // SKY_ENGINE_TONIC_DART_MICROTASK_QUEUE_H_
|