* This will also allow synchronization of surfaces across multiple processes. The caller can add
* SurfaceControlViewHosts from another process to the SurfaceSyncGroup in a different process
* and this clas will ensure all the surfaces are ready before applying everything together.
* </p>
* see the <a href="https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/window/SurfaceSyncGroup.md">SurfaceSyncGroup documentation</a>
* </p>
*/
@@ -136,6 +135,7 @@ public final class SurfaceSyncGroup {
@GuardedBy("mLock")
privatebooleanmTimeoutDisabled;
privatefinalStringmTrackName;
privatestaticbooleanisLocalBinder(IBinderbinder){
return!(binderinstanceofBinderProxy);
@@ -192,6 +192,7 @@ public final class SurfaceSyncGroup {
}
mName=name+"#"+sCounter.getAndIncrement();
mTrackName="SurfaceSyncGroup "+name;
mTransactionReadyConsumer=(transaction)->{
if(DEBUG&&transaction!=null){
@@ -199,9 +200,10 @@ public final class SurfaceSyncGroup {
+mName);
}
if(Trace.isTagEnabled(Trace.TRACE_TAG_VIEW)){
Trace.instant(Trace.TRACE_TAG_VIEW,
"Final TransactionCallback with "+transaction+" for "+mName);