[Impeller] Present Impeller contents in a transaction when there is a platform view (flutter/engine#37809)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user