composer,sdm: Move composer to gralloc4
This change moves the HW composer to use gralloc4.
Change-Id: I5c7308e7e1d8503b6e630b27e70b47cb119f6764
CRs-Fixed: 2854768
diff --git a/composer/hwc_layers.h b/composer/hwc_layers.h
index a73dcd5..22019ed 100644
--- a/composer/hwc_layers.h
+++ b/composer/hwc_layers.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2021, The Linux Foundation. All rights reserved.
* Not a Contribution.
*
* Copyright 2015 The Android Open Source Project
@@ -23,8 +23,7 @@
/* This class translates HWC2 Layer functions to the SDM LayerStack
*/
-#include <gralloc_priv.h>
-#include <qdMetaData.h>
+#include <QtiGralloc.h>
#include <core/layer_stack.h>
#include <core/layer_buffer.h>
#include <utils/utils.h>
@@ -49,7 +48,7 @@
namespace sdm {
-DisplayError SetCSC(const private_handle_t *pvt_handle, ColorMetaData *color_metadata);
+DisplayError SetCSC(const native_handle_t *pvt_handle, ColorMetaData *color_metadata);
bool GetColorPrimary(const int32_t &dataspace, ColorPrimaries *color_primary);
bool GetTransfer(const int32_t &dataspace, GammaTransfer *gamma_transfer);
bool GetRange(const int32_t &dataspace, ColorRange *color_range);
@@ -156,9 +155,9 @@
void SetRect(const hwc_frect_t &source, LayerRect *target);
uint32_t GetUint32Color(const hwc_color_t &source);
void GetUBWCStatsFromMetaData(UBWCStats *cr_stats, UbwcCrStatsVector *cr_vec);
- DisplayError SetMetaData(const private_handle_t *pvt_handle, Layer *layer);
+ DisplayError SetMetaData(const native_handle_t *pvt_handle, Layer *layer);
uint32_t RoundToStandardFPS(float fps);
- void ValidateAndSetCSC(const private_handle_t *handle);
+ void ValidateAndSetCSC(const native_handle_t *handle);
void SetDirtyRegions(hwc_region_t surface_damage);
};