1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_FML_TASK_SOURCE_GRADE_H_
6#define FLUTTER_FML_TASK_SOURCE_GRADE_H_
7
8namespace fml {
9
10/**
11 * Categories of work dispatched to `MessageLoopTaskQueues` dispatcher. By
12 * specifying the `TaskSourceGrade`, you indicate the task's importance to the
13 * dispatcher.
14 */
15enum class TaskSourceGrade {
16 /// This `TaskSourceGrade` indicates that a task is critical to user
17 /// interaction.
18 kUserInteraction,
19 /// This `TaskSourceGrade` indicates that a task corresponds to servicing a
20 /// dart micro task. These aren't critical to user interaction.
21 kDartMicroTasks,
22 /// The absence of a specialized `TaskSourceGrade`.
23 kUnspecified,
24};
25
26} // namespace fml
27
28#endif // FLUTTER_FML_TASK_SOURCE_GRADE_H_
29

source code of flutter_engine/flutter/fml/task_source_grade.h