Loading core/java/android/view/SurfaceControl.java +11 −21 Original line number Diff line number Diff line Loading @@ -978,17 +978,6 @@ public final class SurfaceControl implements Parcelable { } } private static void closeTransaction(boolean sync) { synchronized(SurfaceControl.class) { if (sTransactionNestCount == 0) { Log.e(TAG, "Call to SurfaceControl.closeTransaction without matching openTransaction"); } else if (--sTransactionNestCount > 0) { return; } sGlobalTransaction.apply(sync); } } /** * Merge the supplied transaction in to the deprecated "global" transaction. * This clears the supplied transaction in an identical fashion to {@link Transaction#merge}. Loading @@ -1008,14 +997,15 @@ public final class SurfaceControl implements Parcelable { */ @UnsupportedAppUsage public static void closeTransaction() { closeTransaction(false); synchronized(SurfaceControl.class) { if (sTransactionNestCount == 0) { Log.e(TAG, "Call to SurfaceControl.closeTransaction without matching openTransaction"); } else if (--sTransactionNestCount > 0) { return; } sGlobalTransaction.apply(); } /** * @hide */ public static void closeTransactionSync() { closeTransaction(true); } /** Loading Loading
core/java/android/view/SurfaceControl.java +11 −21 Original line number Diff line number Diff line Loading @@ -978,17 +978,6 @@ public final class SurfaceControl implements Parcelable { } } private static void closeTransaction(boolean sync) { synchronized(SurfaceControl.class) { if (sTransactionNestCount == 0) { Log.e(TAG, "Call to SurfaceControl.closeTransaction without matching openTransaction"); } else if (--sTransactionNestCount > 0) { return; } sGlobalTransaction.apply(sync); } } /** * Merge the supplied transaction in to the deprecated "global" transaction. * This clears the supplied transaction in an identical fashion to {@link Transaction#merge}. Loading @@ -1008,14 +997,15 @@ public final class SurfaceControl implements Parcelable { */ @UnsupportedAppUsage public static void closeTransaction() { closeTransaction(false); synchronized(SurfaceControl.class) { if (sTransactionNestCount == 0) { Log.e(TAG, "Call to SurfaceControl.closeTransaction without matching openTransaction"); } else if (--sTransactionNestCount > 0) { return; } sGlobalTransaction.apply(); } /** * @hide */ public static void closeTransactionSync() { closeTransaction(true); } /** Loading