• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18package perfetto.protos;
19
20// Generated by Android's SurfaceFlinger.
21message GraphicsFrameEvent {
22  enum BufferEventType {
23    UNSPECIFIED = 0;
24    DEQUEUE = 1;
25    QUEUE = 2;
26    POST = 3;
27    ACQUIRE_FENCE = 4;
28    LATCH = 5;
29    // HWC will compose this buffer
30    HWC_COMPOSITION_QUEUED = 6;
31    // renderEngine composition
32    FALLBACK_COMPOSITION = 7;
33    PRESENT_FENCE = 8;
34    RELEASE_FENCE = 9;
35    MODIFY = 10;
36    DETACH = 11;
37    ATTACH = 12;
38    CANCEL = 13;
39  }
40
41  message BufferEvent {
42    optional uint32 frame_number = 1;
43    optional BufferEventType type = 2;
44    optional string layer_name = 3;
45    // If no duration is set, the event is an instant event.
46    optional uint64 duration_ns = 4;
47    // Unique buffer identifier.
48    optional uint32 buffer_id = 5;
49  }
50
51  optional BufferEvent buffer_event = 1;
52}
53