From a9adc26542e635e8255fec75a3336a73f32b2092 Mon Sep 17 00:00:00 2001 From: luckysmg <2539699336@qq.com> Date: Thu, 29 Dec 2022 12:55:19 +0800 Subject: [PATCH] ++ --- shell/platform/darwin/ios/ios_surface_metal_impeller.mm | 2 +- shell/platform/darwin/ios/ios_surface_metal_skia.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/darwin/ios/ios_surface_metal_impeller.mm b/shell/platform/darwin/ios/ios_surface_metal_impeller.mm index 31dcd7a5e99aa..65423a13b0676 100644 --- a/shell/platform/darwin/ios/ios_surface_metal_impeller.mm +++ b/shell/platform/darwin/ios/ios_surface_metal_impeller.mm @@ -52,7 +52,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 = [[NSThread currentThread] isMainThread]; + layer.presentsWithTransaction = YES; return layer; } diff --git a/shell/platform/darwin/ios/ios_surface_metal_skia.mm b/shell/platform/darwin/ios/ios_surface_metal_skia.mm index 13ac639a2fe0c..b17691932885c 100644 --- a/shell/platform/darwin/ios/ios_surface_metal_skia.mm +++ b/shell/platform/darwin/ios/ios_surface_metal_skia.mm @@ -66,7 +66,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 = [[NSThread currentThread] isMainThread]; + layer.presentsWithTransaction = YES; return layer; }