Merge "SurfaceFlinger: Enable ealy offset for reused client composition" into rvc-d1-dev am: e29fcaca9a am: 59aa529a53 am: d1584280f1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12086962

Change-Id: Iac1a9217d350a284692e672db355693c547f0a27
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index db6f1ad..1c27759 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2103,7 +2103,8 @@
         mTimeStats->incrementCompositionStrategyChanges();
     }
 
-    mVSyncModulator->onRefreshed(mHadClientComposition);
+    // TODO: b/160583065 Enable skip validation when SF caches all client composition layers
+    mVSyncModulator->onRefreshed(mHadClientComposition || mReusedClientComposition);
 
     mLayersWithQueuedFrames.clear();
     if (mVisibleRegionsDirty) {