提交 3dac5a71 编写于 作者: J Jason Simmons 提交者: GitHub

Drop the last layer tree when tearing down the rasterizer (#2836)

The LayerTree may be holding references to obsolete Skia/GPU resources,
notably the GrGLGpu.  The old GrGLGpu should be deleted before a new
GrGLGpu is created during the next rasterizer setup.

Fixes https://github.com/flutter/flutter/issues/5074
上级 84872e4f
......@@ -75,6 +75,7 @@ void RasterizerDirect::Setup(PlatformView* platform_view,
void RasterizerDirect::Teardown(
base::WaitableEvent* teardown_completion_event) {
platform_view_ = nullptr;
last_layer_tree_.reset();
compositor_context_.OnGrContextDestroyed();
teardown_completion_event->Signal();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册