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

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_plane.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 side-by-side diff with in-line comments
Download patch
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..629b7450b65d2e47cd3d6bdc86587463675d4e53 100644
--- a/ui/ozone/platform/drm/gpu/hardware_display_plane.h
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane.h
@@ -13,6 +13,8 @@
#include "base/macros.h"
#include "ui/ozone/platform/drm/common/scoped_drm_types.h"
+struct drm_format_info;
+
namespace ui {
class DrmDevice;
@@ -27,11 +29,14 @@ class HardwareDisplayPlane {
bool Initialize(DrmDevice* drm,
const std::vector<uint32_t>& formats,
+ const std::vector<struct drm_format_info>& format_info,
Daniele Castagna 2016/12/16 00:27:41 I don't think struct is necessary here.
hoegsberg1 2016/12/17 01:10:49 Acknowledged.
bool is_dummy,
bool test_only);
bool IsSupportedFormat(uint32_t format);
+ uint32_t ModifiersForFormat(uint32_t format, uint64_t *modifiers, uint32_t count);
+
bool CanUseForCrtc(uint32_t crtc_index);
bool in_use() const { return in_use_; }
@@ -58,6 +63,7 @@ class HardwareDisplayPlane {
bool in_use_ = false;
Type type_ = kPrimary;
std::vector<uint32_t> supported_formats_;
+ std::vector<struct drm_format_info> supported_format_info_;
DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
};

Powered by Google App Engine
This is Rietveld 408576698