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