OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ATOMIC_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_ATOMIC_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_ATOMIC_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_ATOMIC_H_ |
7 | 7 |
8 #include "ui/ozone/ozone_export.h" | 8 #include "ui/ozone/ozone_export.h" |
9 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager.h" | 9 #include "ui/ozone/platform/drm/gpu/hardware_display_plane_manager.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 class OZONE_EXPORT HardwareDisplayPlaneManagerAtomic | 13 class OZONE_EXPORT HardwareDisplayPlaneManagerAtomic |
14 : public HardwareDisplayPlaneManager { | 14 : public HardwareDisplayPlaneManager { |
15 public: | 15 public: |
16 HardwareDisplayPlaneManagerAtomic(); | 16 HardwareDisplayPlaneManagerAtomic(); |
17 ~HardwareDisplayPlaneManagerAtomic() override; | 17 ~HardwareDisplayPlaneManagerAtomic() override; |
18 | 18 |
19 // HardwareDisplayPlaneManager: | 19 // HardwareDisplayPlaneManager: |
20 bool AssignOverlayPlanes(HardwareDisplayPlaneList* plane_list, | |
21 const OverlayPlaneList& overlay_list, | |
22 uint32_t crtc_id, | |
23 CrtcController* crtc) override; | |
24 bool Commit(HardwareDisplayPlaneList* plane_list, bool is_sync) override; | 20 bool Commit(HardwareDisplayPlaneList* plane_list, bool is_sync) override; |
25 | 21 |
26 private: | 22 private: |
27 bool SetPlaneData(HardwareDisplayPlaneList* plane_list, | 23 bool SetPlaneData(HardwareDisplayPlaneList* plane_list, |
28 HardwareDisplayPlane* hw_plane, | 24 HardwareDisplayPlane* hw_plane, |
29 const OverlayPlane& overlay, | 25 const OverlayPlane& overlay, |
30 uint32_t crtc_id, | 26 uint32_t crtc_id, |
31 const gfx::Rect& src_rect, | 27 const gfx::Rect& src_rect, |
32 CrtcController* crtc) override; | 28 CrtcController* crtc) override; |
33 | 29 |
34 scoped_ptr<HardwareDisplayPlane> CreatePlane( | 30 scoped_ptr<HardwareDisplayPlane> CreatePlane( |
35 uint32_t plane_id, | 31 uint32_t plane_id, |
36 uint32_t possible_crtcs) override; | 32 uint32_t possible_crtcs) override; |
37 | 33 |
38 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManagerAtomic); | 34 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManagerAtomic); |
39 }; | 35 }; |
40 | 36 |
41 } // namespace ui | 37 } // namespace ui |
42 | 38 |
43 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_ATOMIC_H_ | 39 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_ATOMIC_H_ |
OLD | NEW |