OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module cc.mojom; | 5 module cc.mojom; |
6 | 6 |
7 import "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/common_custom_types.mojom"; |
8 | 8 |
9 enum BeginFrameArgsType { | 9 enum BeginFrameArgsType { |
10 INVALID, | 10 INVALID, |
11 NORMAL, | 11 NORMAL, |
12 MISSED, | 12 MISSED, |
13 BEGIN_FRAME_ARGS_TYPE_MAX | 13 BEGIN_FRAME_ARGS_TYPE_MAX |
14 }; | 14 }; |
15 | 15 |
16 // See cc/output/begin_frame_args.h. | 16 // See cc/output/begin_frame_args.h. |
17 struct BeginFrameArgs { | 17 struct BeginFrameArgs { |
| 18 uint64 source_id; |
| 19 uint64 sequence_number; |
18 mojo.common.mojom.TimeTicks frame_time; | 20 mojo.common.mojom.TimeTicks frame_time; |
19 mojo.common.mojom.TimeTicks deadline; | 21 mojo.common.mojom.TimeTicks deadline; |
20 mojo.common.mojom.TimeDelta interval; | 22 mojo.common.mojom.TimeDelta interval; |
21 BeginFrameArgsType type; | 23 BeginFrameArgsType type; |
22 bool on_critical_path; | 24 bool on_critical_path; |
23 }; | 25 }; |
| 26 |
| 27 // See cc/output/begin_frame_args.h. |
| 28 struct BeginFrameAck { |
| 29 uint64 source_id; |
| 30 uint64 sequence_number; |
| 31 uint64 oldest_incorporated_frame; |
| 32 uint32 remaining_frames; |
| 33 bool has_updates; |
| 34 }; |
OLD | NEW |