mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] Present Impeller contents in a transaction when there is a platform view (flutter/engine#37809)
This commit is contained in:
parent
659b53cfc5
commit
2a9bcb43d1
@ -48,6 +48,12 @@ GPUCAMetalLayerHandle IOSSurfaceMetalImpeller::GetCAMetalLayer(const SkISize& fr
|
||||
if (!CGSizeEqualToSize(drawable_size, layer.drawableSize)) {
|
||||
layer.drawableSize = drawable_size;
|
||||
}
|
||||
|
||||
// When there are platform views in the scene, the drawable needs to be presented in the same
|
||||
// transaction as the one created for platform views. When the drawable are being presented from
|
||||
// the raster thread, there is no such transaction.
|
||||
layer.presentsWithTransaction = [[NSThread currentThread] isMainThread];
|
||||
|
||||
return layer;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user