diff options
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.h')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.h b/sdm/libs/hwc2/hwc_layers.h index a24f5a44..ce3bd1f3 100644 --- a/sdm/libs/hwc2/hwc_layers.h +++ b/sdm/libs/hwc2/hwc_layers.h @@ -91,6 +91,7 @@ class HWCLayer { HWC2::Error SetLayerPerFrameMetadata(uint32_t num_elements, const PerFrameMetadataKey *keys, const float *metadata); HWC2::Error SetLayerZOrder(uint32_t z); + HWC2::Error SetLayerColorTransform(const float *matrix); void SetComposition(const LayerComposition &sdm_composition); HWC2::Composition GetClientRequestedCompositionType() { return client_requested_; } void UpdateClientCompositionType(HWC2::Composition type) { client_requested_ = type; } @@ -112,6 +113,7 @@ class HWCLayer { bool IsNonIntegralSourceCrop() { return non_integral_source_crop_; } bool HasMetaDataRefreshRate() { return has_metadata_refresh_rate_; } void SetPartialUpdate(bool enabled) { partial_update_enabled_ = enabled; } + bool IsColorTransformSet() const { return color_transform_matrix_set_; } private: Layer *layer_ = nullptr; @@ -131,6 +133,7 @@ class HWCLayer { bool has_metadata_refresh_rate_ = false; bool partial_update_enabled_ = false; bool surface_updated_ = true; + bool color_transform_matrix_set_ = false; // Composition requested by client(SF) HWC2::Composition client_requested_ = HWC2::Composition::Device; |