Merge "Catch all exceptions in onFrameDraw" into qt-dev am: cff24b878d
am: abe1a94072
Change-Id: I74089f0cf71ca2c3dc917001eb14dca8586396e0
This commit is contained in:
@@ -1131,7 +1131,13 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
*/
|
*/
|
||||||
public void registerRtFrameCallback(FrameDrawingCallback callback) {
|
public void registerRtFrameCallback(FrameDrawingCallback callback) {
|
||||||
if (mAttachInfo.mThreadedRenderer != null) {
|
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);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user