flutter_flutter/sky/engine/tonic/dart_microtask_queue.h
Adam Barth 1f4416f87b Move microtask queue into tonic
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.
2016-01-18 16:59:52 -08:00

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_