xref: /aosp_15_r20/external/perfetto/protos/perfetto/trace/android/viewcapture.proto (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1/*
2 * Copyright (C) 2024 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";
18
19package perfetto.protos;
20
21message ViewCapture {
22  optional int32 package_name_iid = 1;
23  optional int32 window_name_iid = 2;
24  repeated View views = 3;
25
26  message View {
27    optional int32 id = 1;
28    optional int32 parent_id = 2;
29    optional int32 hashcode = 3;
30    optional int32 view_id_iid = 4;
31    optional int32 class_name_iid = 5;
32
33    optional int32 left = 6;
34    optional int32 top = 7;
35    optional int32 width = 8;
36    optional int32 height = 9;
37    optional int32 scroll_x = 10;
38    optional int32 scroll_y = 11;
39
40    optional float translation_x = 12;
41    optional float translation_y = 13;
42    optional float scale_x = 14;
43    optional float scale_y = 15;
44    optional float alpha = 16;
45
46    optional bool will_not_draw = 17;
47    optional bool clip_children = 18;
48    optional int32 visibility = 19;
49
50    optional float elevation = 20;
51  }
52}
53