OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <xf86drmMode.h> | 10 #include <xf86drmMode.h> |
(...skipping 20 matching lines...) Expand all Loading... |
31 struct OZONE_EXPORT HardwareDisplayPlaneList { | 31 struct OZONE_EXPORT HardwareDisplayPlaneList { |
32 HardwareDisplayPlaneList(); | 32 HardwareDisplayPlaneList(); |
33 ~HardwareDisplayPlaneList(); | 33 ~HardwareDisplayPlaneList(); |
34 | 34 |
35 // This is the list of planes to be committed this time. | 35 // This is the list of planes to be committed this time. |
36 std::vector<HardwareDisplayPlane*> plane_list; | 36 std::vector<HardwareDisplayPlane*> plane_list; |
37 // This is the list of planes that was committed last time. | 37 // This is the list of planes that was committed last time. |
38 std::vector<HardwareDisplayPlane*> old_plane_list; | 38 std::vector<HardwareDisplayPlane*> old_plane_list; |
39 | 39 |
40 struct PageFlipInfo { | 40 struct PageFlipInfo { |
41 PageFlipInfo(uint32_t crtc_id, | 41 PageFlipInfo(uint32_t crtc_id, uint32_t framebuffer, CrtcController* crtc); |
42 uint32_t framebuffer, | |
43 CrtcController* crtc); | |
44 ~PageFlipInfo(); | 42 ~PageFlipInfo(); |
45 | 43 |
46 uint32_t crtc_id; | 44 uint32_t crtc_id; |
47 uint32_t framebuffer; | 45 uint32_t framebuffer; |
48 CrtcController* crtc; | 46 CrtcController* crtc; |
49 | 47 |
50 struct Plane { | 48 struct Plane { |
51 Plane(int plane, | 49 Plane(int plane, |
52 int framebuffer, | 50 int framebuffer, |
53 const gfx::Rect& bounds, | 51 const gfx::Rect& bounds, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 120 |
123 ScopedVector<HardwareDisplayPlane> planes_; | 121 ScopedVector<HardwareDisplayPlane> planes_; |
124 std::vector<uint32_t> crtcs_; | 122 std::vector<uint32_t> crtcs_; |
125 | 123 |
126 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); | 124 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); |
127 }; | 125 }; |
128 | 126 |
129 } // namespace ui | 127 } // namespace ui |
130 | 128 |
131 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 129 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
OLD | NEW |