diff options
Diffstat (limited to 'msm8996/sdm/libs/hwc2/hwc_layers.h')
| -rw-r--r-- | msm8996/sdm/libs/hwc2/hwc_layers.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/msm8996/sdm/libs/hwc2/hwc_layers.h b/msm8996/sdm/libs/hwc2/hwc_layers.h index d77a3cab7..536132049 100644 --- a/msm8996/sdm/libs/hwc2/hwc_layers.h +++ b/msm8996/sdm/libs/hwc2/hwc_layers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017, The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2017, 2019, The Linux Foundation. All rights reserved. * Not a Contribution. * * Copyright 2015 The Android Open Source Project @@ -83,6 +83,8 @@ class HWCLayer { int32_t PopReleaseFence(void); void ResetValidation() { needs_validate_ = false; } bool NeedsValidation() { return (needs_validate_ || geometry_changes_); } + bool IsSurfaceUpdated() { return surface_updated_; } + void SetPartialUpdate(bool enabled) { partial_update_enabled_ = enabled; } private: Layer *layer_ = nullptr; @@ -95,6 +97,8 @@ class HWCLayer { int ion_fd_ = -1; HWCBufferAllocator *buffer_allocator_ = NULL; bool needs_validate_ = true; + bool partial_update_enabled_ = false; + bool surface_updated_ = true; // Composition requested by client(SF) HWC2::Composition client_requested_ = HWC2::Composition::Device; @@ -111,6 +115,7 @@ class HWCLayer { DisplayError SetCSC(ColorSpace_t source, LayerCSC *target); DisplayError SetIGC(IGC_t source, LayerIGC *target); uint32_t RoundToStandardFPS(float fps); + void SetDirtyRegions(hwc_region_t surface_damage); }; struct SortLayersByZ { |
