Chromium Code Reviews| Index: ui/ozone/platform/drm/gpu/hardware_display_plane.h |
| diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane.h b/ui/ozone/platform/drm/gpu/hardware_display_plane.h |
| index a7b23f4d1d4a85622ebe00b13281100c0d723cb3..fda8d8c25de5caad79273b24d8d06752fa18c395 100644 |
| --- a/ui/ozone/platform/drm/gpu/hardware_display_plane.h |
| +++ b/ui/ozone/platform/drm/gpu/hardware_display_plane.h |
| @@ -27,11 +27,14 @@ class HardwareDisplayPlane { |
| bool Initialize(DrmDevice* drm, |
| const std::vector<uint32_t>& formats, |
| + const std::vector<struct drm_format_modifier>& format_info, |
|
Daniele Castagna
2016/12/20 18:03:29
should we typedef drm_format modifier?
hoegsberg1
2016/12/22 23:05:21
Fixed by including xf86drmMode.h in the right plac
|
| bool is_dummy, |
| bool test_only); |
| bool IsSupportedFormat(uint32_t format); |
| + std::vector<uint64_t> ModifiersForFormat(uint32_t format); |
| + |
| bool CanUseForCrtc(uint32_t crtc_index); |
| bool in_use() const { return in_use_; } |
| @@ -58,6 +61,7 @@ class HardwareDisplayPlane { |
| bool in_use_ = false; |
| Type type_ = kPrimary; |
| std::vector<uint32_t> supported_formats_; |
| + std::vector<struct drm_format_modifier> supported_format_modifiers_; |
| DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane); |
| }; |