diff options
| author | 2023-01-06 18:28:21 +0000 | |
|---|---|---|
| committer | 2023-01-06 18:28:21 +0000 | |
| commit | 8d4e33764ab9255f82dfd3018d5caf7fbea67ccf (patch) | |
| tree | 3cb2c681b314bafa5972c3e245b52ab4f9eecafa | |
| parent | e6c392d480ca9c9ca75928ac7ed2fd694140735c (diff) | |
| parent | 0130e8f33718eae2a486352bf733e3ccbde3d4a6 (diff) | |
Merge "Clean up debug.sf.ignore_hwc_physical_display_orientation" into tm-qpr-dev am: 0130e8f337
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/20881991
Change-Id: I30c9aa0d32468048f74a684c4e53d39dc7b193ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 6 | ||||
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index c2f3bddffc..d1275b0f43 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -423,9 +423,6 @@ SurfaceFlinger::SurfaceFlinger(Factory& factory) : SurfaceFlinger(factory, SkipI property_get("debug.sf.treat_170m_as_sRGB", value, "0"); mTreat170mAsSrgb = atoi(value); - mIgnoreHwcPhysicalDisplayOrientation = - base::GetBoolProperty("debug.sf.ignore_hwc_physical_display_orientation"s, false); - // We should be reading 'persist.sys.sf.color_saturation' here // but since /data may be encrypted, we need to wait until after vold // comes online to attempt to read the property. The property is @@ -2413,8 +2410,7 @@ ui::Rotation SurfaceFlinger::getPhysicalDisplayOrientation(DisplayId displayId, if (!id) { return ui::ROTATION_0; } - if (!mIgnoreHwcPhysicalDisplayOrientation && - getHwComposer().getComposer()->isSupported( + if (getHwComposer().getComposer()->isSupported( Hwc2::Composer::OptionalFeature::PhysicalDisplayOrientation)) { switch (getHwComposer().getPhysicalDisplayOrientation(*id)) { case Hwc2::AidlTransform::ROT_90: diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index 87124d9148..bb9490889a 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -353,11 +353,6 @@ public: // on this behavior to increase contrast for some media sources. bool mTreat170mAsSrgb = false; - // Allows to ignore physical orientation provided through hwc API in favour of - // 'ro.surface_flinger.primary_display_orientation'. - // TODO(b/246793311): Clean up a temporary property - bool mIgnoreHwcPhysicalDisplayOrientation = false; - protected: // We're reference counted, never destroy SurfaceFlinger directly virtual ~SurfaceFlinger(); |