Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1a27df1

Browse files
committed
fix
1 parent f6c2b12 commit 1a27df1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

shell/gpu/gpu_surface_metal.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292

9393
canvas->flush();
9494

95-
return delegate->PresentDrawable(drawable);
95+
bool present_result = delegate->PresentDrawable(drawable);
96+
return present_result;
9697
});
9798

9899
return std::make_unique<SurfaceFrame>(std::move(surface), true, submit_callback);

shell/platform/darwin/ios/ios_surface_metal.mm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@
8282
[command_buffer.get() commit];
8383
[command_buffer.get() waitUntilScheduled];
8484

85-
fml::scoped_nsprotocol<id<CAMetalDrawable>> drawable_holder(
86-
reinterpret_cast<id<CAMetalDrawable>>(drawable));
87-
[drawable_holder.get() present];
88-
85+
[reinterpret_cast<id<CAMetalDrawable>>(drawable) present];
8986
return true;
9087
}
9188

0 commit comments

Comments
 (0)