Skip to content

Commit

Permalink
Revert unconditional CATransaction. (#45454)
Browse files Browse the repository at this point in the history
Cherry pick of fix for flutter/flutter#133147
  • Loading branch information
jonahwilliams authored Sep 5, 2023
1 parent 9294b82 commit b8d3581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/platform/darwin/ios/ios_surface_metal_impeller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
// 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 = YES;
layer.presentsWithTransaction = [[NSThread currentThread] isMainThread];

return layer;
}
Expand Down

0 comments on commit b8d3581

Please sign in to comment.