File tree Expand file tree Collapse file tree 5 files changed +35
-8
lines changed
services/surfaceflinger/DisplayHardware Expand file tree Collapse file tree 5 files changed +35
-8
lines changed Original file line number Diff line number Diff line change 30
30
#include < ui/FrameStats.h>
31
31
#include < ui/GraphicBuffer.h>
32
32
#include < ui/GraphicTypes.h>
33
+ #include < ui/PhysicalDisplayId.h>
33
34
#include < ui/PixelFormat.h>
34
35
35
36
#include < utils/Errors.h>
Original file line number Diff line number Diff line change 16
16
17
17
#pragma once
18
18
19
- #include < cinttypes>
20
- #include < cstdint>
21
-
22
19
#include < android/hardware/graphics/common/1.1/types.h>
23
20
#include < android/hardware/graphics/common/1.2/types.h>
24
21
#include < system/graphics.h>
25
22
26
- #define ANDROID_PHYSICAL_DISPLAY_ID_FORMAT PRIu64
27
-
28
23
namespace android {
29
24
30
- using PhysicalDisplayId = uint64_t ;
31
-
32
25
// android::ui::* in this header file will alias different types as
33
26
// the HIDL interface is updated.
34
27
namespace ui {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 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
+
17
+ #pragma once
18
+
19
+ #include < cinttypes>
20
+ #include < cstdint>
21
+
22
+ #define ANDROID_PHYSICAL_DISPLAY_ID_FORMAT PRIu64
23
+
24
+ namespace android {
25
+
26
+ using PhysicalDisplayId = uint64_t ;
27
+
28
+ constexpr uint8_t getPhysicalDisplayPort (PhysicalDisplayId displayId) {
29
+ return static_cast <uint8_t >(displayId);
30
+ }
31
+
32
+ } // namespace android
Original file line number Diff line number Diff line change
1
+ ../../include /ui /PhysicalDisplayId .h
Original file line number Diff line number Diff line change 23
23
#include < string_view>
24
24
#include < vector>
25
25
26
- #include < ui/GraphicTypes .h>
26
+ #include < ui/PhysicalDisplayId .h>
27
27
28
28
namespace android {
29
29
You can’t perform that action at this time.
0 commit comments