Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update gpu_surface_metal_impeller.mm
  • Loading branch information
Jonah Williams authored Mar 27, 2024
commit c789114659647616fca15d000f1be637829f72d0
2 changes: 2 additions & 0 deletions shell/gpu/gpu_surface_metal_impeller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@
auto surface = impeller::SurfaceMTL::MakeFromMetalLayerDrawable(renderer->GetContext(),
drawable, clip_rect);

// The surface may be null if we failed to allocate the onscreen render target
// due to running out of memory.
if (!surface) {
return false;
}
Expand Down