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

Commit 6ff63bdf 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

am: 056fd407

Change-Id: Icd452fb2132ffd98fe65ee5951f727e41a37f40b
parents 62cc90df 056fd407
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);
                }
            });
        }
    }