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

Commit 056fd407 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Catch all exceptions in onFrameDraw" into qt-dev am: cff24b87

am: abe1a940

Change-Id: I74089f0cf71ca2c3dc917001eb14dca8586396e0
parents 9447a9d9 abe1a940
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1131,7 +1131,13 @@ public final class ViewRootImpl implements ViewParent,
     */
    public void registerRtFrameCallback(FrameDrawingCallback callback) {
        if (mAttachInfo.mThreadedRenderer != null) {
            mAttachInfo.mThreadedRenderer.registerRtFrameCallback(callback);
            mAttachInfo.mThreadedRenderer.registerRtFrameCallback(frame -> {
                try {
                    callback.onFrameDraw(frame);
                } catch (Exception e) {
                    Log.e(TAG, "Exception while executing onFrameDraw", e);
                }
            });
        }
    }