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

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Dec 14, 2020

Description

Cache and reuse overlays created for previous platform views. This made the overlays more susceptible to the "WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost" problem, so this change also includes recovery code for lost GL context.

Related Issues

Fixes flutter/flutter#50721 (again, #22966 didn't fix all situations)

Tests

New tests in surface_test.dart and embedded_views_test.dart.

Copy link
Contributor

@harryterkelsen harryterkelsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Web] [CanvasKit] WebGL context is not cleaned up / lost

2 participants