1package com.genymobile.scrcpy.device;
2
3public final class DisplayInfo {
4 private final int displayId;
5 private final Size size;
6 private final int rotation;
7 private final int layerStack;
8 private final int flags;
9
10 public static final int FLAG_SUPPORTS_PROTECTED_BUFFERS = 0x00000001;
11
12 public DisplayInfo(int displayId, Size size, int rotation, int layerStack, int flags) {
13 this.displayId = displayId;
14 this.size = size;
15 this.rotation = rotation;
16 this.layerStack = layerStack;
17 this.flags = flags;
18 }
19
20 public int getDisplayId() {
21 return displayId;
22 }
23
24 public Size getSize() {
…lines 25–32 unchanged (8 lines)
33 return layerStack;
34 }
35
36 public int getFlags() {
37 return flags;
38 }
39}
40
41