Merge "Fix segfault in ViewRootImpl on BLAST"
This commit is contained in:
committed by
Android (Google) Code Review
commit
3d08de1582
@@ -1691,7 +1691,7 @@ public final class ViewRootImpl implements ViewParent,
|
||||
.build();
|
||||
setBoundsLayerCrop();
|
||||
mTransaction.show(mBoundsLayer).apply();
|
||||
}
|
||||
}
|
||||
return mBoundsLayer;
|
||||
}
|
||||
|
||||
@@ -1699,7 +1699,9 @@ public final class ViewRootImpl implements ViewParent,
|
||||
if (mSurfaceControl == null || !mSurfaceControl.isValid()) {
|
||||
return null;
|
||||
}
|
||||
if ((mBlastBufferQueue != null) && mBlastSurfaceControl.isValid()) {
|
||||
if ((mBlastSurfaceControl != null)
|
||||
&& (mBlastBufferQueue == null)
|
||||
&& mBlastSurfaceControl.isValid()) {
|
||||
mBlastBufferQueue = new BLASTBufferQueue(
|
||||
mBlastSurfaceControl, width, height);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user