| 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_ATOMIC_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_ |
| 7 | 7 |
| 8 #include "ui/ozone/platform/drm/gpu/hardware_display_plane.h" | 8 #include "ui/ozone/platform/drm/gpu/hardware_display_plane.h" |
| 9 | 9 |
| 10 #include <xf86drmMode.h> | 10 #include <xf86drmMode.h> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 bool SetPlaneData(drmModePropertySet* property_set, | 22 bool SetPlaneData(drmModePropertySet* property_set, |
| 23 uint32_t crtc_id, | 23 uint32_t crtc_id, |
| 24 uint32_t framebuffer, | 24 uint32_t framebuffer, |
| 25 const gfx::Rect& crtc_rect, | 25 const gfx::Rect& crtc_rect, |
| 26 const gfx::Rect& src_rect); | 26 const gfx::Rect& src_rect); |
| 27 | 27 |
| 28 // HardwareDisplayPlane: | 28 // HardwareDisplayPlane: |
| 29 bool Initialize(DrmDevice* drm, | 29 bool Initialize(DrmDevice* drm, |
| 30 const std::vector<uint32_t>& formats) override; | 30 const std::vector<uint32_t>& formats) override; |
| 31 bool IsSupportedFormat(uint32_t format) const override; | |
| 32 | 31 |
| 33 void set_crtc(CrtcController* crtc) { crtc_ = crtc; } | 32 void set_crtc(CrtcController* crtc) { crtc_ = crtc; } |
| 34 CrtcController* crtc() const { return crtc_; } | 33 CrtcController* crtc() const { return crtc_; } |
| 35 | 34 |
| 36 private: | 35 private: |
| 37 struct Property { | 36 struct Property { |
| 38 Property(); | 37 Property(); |
| 39 bool Initialize(DrmDevice* drm, | 38 bool Initialize(DrmDevice* drm, |
| 40 const char* name, | 39 const char* name, |
| 41 const ScopedDrmObjectPropertyPtr& plane_properties); | 40 const ScopedDrmObjectPropertyPtr& plane_properties); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 52 Property src_y_prop_; | 51 Property src_y_prop_; |
| 53 Property src_w_prop_; | 52 Property src_w_prop_; |
| 54 Property src_h_prop_; | 53 Property src_h_prop_; |
| 55 CrtcController* crtc_ = nullptr; | 54 CrtcController* crtc_ = nullptr; |
| 56 std::vector<uint32_t> supported_formats_; | 55 std::vector<uint32_t> supported_formats_; |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespace ui | 58 } // namespace ui |
| 60 | 59 |
| 61 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_ | 60 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_ATOMIC_H_ |
| OLD | NEW |