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_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
6 #define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_DRI_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 int plane; | 57 int plane; |
58 int framebuffer; | 58 int framebuffer; |
59 gfx::Rect bounds; | 59 gfx::Rect bounds; |
60 gfx::Rect src_rect; | 60 gfx::Rect src_rect; |
61 }; | 61 }; |
62 std::vector<Plane> planes; | 62 std::vector<Plane> planes; |
63 }; | 63 }; |
64 // In the case of non-atomic operation, this info will be used for | 64 // In the case of non-atomic operation, this info will be used for |
65 // pageflipping. | 65 // pageflipping. |
66 std::vector<PageFlipInfo> legacy_page_flips; | 66 std::vector<PageFlipInfo> legacy_page_flips; |
| 67 |
| 68 // Set if the last operation on this list was a Commit(). |
| 69 bool committed; |
67 }; | 70 }; |
68 | 71 |
69 class HardwareDisplayPlaneManager { | 72 class HardwareDisplayPlaneManager { |
70 public: | 73 public: |
71 HardwareDisplayPlaneManager(); | 74 HardwareDisplayPlaneManager(); |
72 virtual ~HardwareDisplayPlaneManager(); | 75 virtual ~HardwareDisplayPlaneManager(); |
73 | 76 |
74 // This parses information from the drm driver, adding any new planes | 77 // This parses information from the drm driver, adding any new planes |
75 // or crtcs found. | 78 // or crtcs found. |
76 bool Initialize(DriWrapper* drm); | 79 bool Initialize(DriWrapper* drm); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 115 |
113 ScopedVector<HardwareDisplayPlane> planes_; | 116 ScopedVector<HardwareDisplayPlane> planes_; |
114 std::vector<uint32_t> crtcs_; | 117 std::vector<uint32_t> crtcs_; |
115 | 118 |
116 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); | 119 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); |
117 }; | 120 }; |
118 | 121 |
119 } // namespace ui | 122 } // namespace ui |
120 | 123 |
121 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ | 124 #endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_MANAGER_H_ |
OLD | NEW |