未验证 提交 04f3c655 编写于 作者: J Jason Simmons 提交者: GitHub

Provide a texture registry to the compositor context used for screenshots (#4921)

Fixes https://github.com/flutter/flutter/issues/16143
上级 467e2e7f
......@@ -727,6 +727,7 @@ void PlatformViewAndroid::GetBitmapGpuTask(jobject* pixels_out,
image_info, pixels, frame_size.width() * sizeof(jint));
flow::CompositorContext compositor_context(nullptr);
compositor_context.SetTextureRegistry(&texture_registry_);
SkCanvas* canvas = surface->getCanvas();
flow::CompositorContext::ScopedFrame frame =
compositor_context.AcquireFrame(nullptr, canvas, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册