forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
task_source_grade.h
28 lines (23 loc) · 883 Bytes
/
task_source_grade.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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_FML_TASK_SOURCE_GRADE_H_
#define FLUTTER_FML_TASK_SOURCE_GRADE_H_
namespace fml {
/**
* Categories of work dispatched to `MessageLoopTaskQueues` dispatcher. By
* specifying the `TaskSourceGrade`, you indicate the task's importance to the
* dispatcher.
*/
enum class TaskSourceGrade {
/// This `TaskSourceGrade` indicates that a task is critical to user
/// interaction.
kUserInteraction,
/// This `TaskSourceGrade` indicates that a task corresponds to servicing a
/// dart micro task. These aren't critical to user interaction.
kDartMicroTasks,
/// The absence of a specialized `TaskSourceGrade`.
kUnspecified,
};
} // namespace fml
#endif // FLUTTER_FML_TASK_SOURCE_GRADE_H_