Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Side by Side Diff: ui/ozone/platform/drm/gpu/hardware_display_plane_manager.h

Issue 2576263002: ozone: Allocate scanout buffer according to KMS modifiers (Closed)
Patch Set: ozone: Allocate scanout buffer according to KMS modifiers Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 // Returns all formats which can be scanned out by this PlaneManager. Use 99 // Returns all formats which can be scanned out by this PlaneManager. Use
100 // IsFormatSupported to find if a given format is supported on a particular 100 // IsFormatSupported to find if a given format is supported on a particular
101 // plane for a given crtc. 101 // plane for a given crtc.
102 const std::vector<uint32_t>& GetSupportedFormats() const; 102 const std::vector<uint32_t>& GetSupportedFormats() const;
103 bool IsFormatSupported(uint32_t fourcc_format, 103 bool IsFormatSupported(uint32_t fourcc_format,
104 uint32_t z_order, 104 uint32_t z_order,
105 uint32_t crtc_id) const; 105 uint32_t crtc_id) const;
106 106
107 uint32_t GetFormatModifiers(uint32_t crtc_id, uint32_t format,
108 uint64_t *modifiers, uint32_t count);
109
107 protected: 110 protected:
108 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list, 111 virtual bool SetPlaneData(HardwareDisplayPlaneList* plane_list,
109 HardwareDisplayPlane* hw_plane, 112 HardwareDisplayPlane* hw_plane,
110 const OverlayPlane& overlay, 113 const OverlayPlane& overlay,
111 uint32_t crtc_id, 114 uint32_t crtc_id,
112 const gfx::Rect& src_rect, 115 const gfx::Rect& src_rect,
113 CrtcController* crtc) = 0; 116 CrtcController* crtc) = 0;
114 117
115 virtual std::unique_ptr<HardwareDisplayPlane> CreatePlane( 118 virtual std::unique_ptr<HardwareDisplayPlane> CreatePlane(
116 uint32_t plane_id, 119 uint32_t plane_id,
(...skipping 26 matching lines...) Expand all
143 std::vector<std::unique_ptr<HardwareDisplayPlane>> planes_; 146 std::vector<std::unique_ptr<HardwareDisplayPlane>> planes_;
144 std::vector<uint32_t> crtcs_; 147 std::vector<uint32_t> crtcs_;
145 std::vector<uint32_t> supported_formats_; 148 std::vector<uint32_t> supported_formats_;
146 149
147 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager); 150 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlaneManager);
148 }; 151 };
149 152
150 } // namespace ui 153 } // namespace ui
151 154
152 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_ 155 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698