Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e2455e1 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "More targetted drawFinished fix"

parents ddecd74c 8cc1f691
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3477,7 +3477,7 @@ public final class ViewRootImpl implements ViewParent,
                usingAsyncReport = true;
                final Handler handler = mAttachInfo.mHandler;
                mAttachInfo.mThreadedRenderer.setFrameCompleteCallback((long frameNr) ->
                        handler.post(() -> {
                        handler.postAtFrontOfQueue(() -> {
                            // TODO: Use the frame number
                            pendingDrawFinished();
                            if (commitCallbacks != null) {
@@ -3489,7 +3489,7 @@ public final class ViewRootImpl implements ViewParent,
            } else if (commitCallbacks != null && commitCallbacks.size() > 0) {
                final Handler handler = mAttachInfo.mHandler;
                mAttachInfo.mThreadedRenderer.setFrameCompleteCallback((long frameNr) ->
                        handler.post(() -> {
                        handler.postAtFrontOfQueue(() -> {
                            for (int i = 0; i < commitCallbacks.size(); i++) {
                                commitCallbacks.get(i).run();
                            }