未验证 提交 22d08d1a 编写于 作者: H Harry Terkelsen 提交者: GitHub

Set the current GL context to the most recently acquired Surface (#16572)

上级 c210c3d5
...@@ -47,6 +47,7 @@ class Surface { ...@@ -47,6 +47,7 @@ class Surface {
/// The given [size] is in physical pixels. /// The given [size] is in physical pixels.
SurfaceFrame acquireFrame(ui.Size size) { SurfaceFrame acquireFrame(ui.Size size) {
final SkSurface surface = acquireRenderSurface(size); final SkSurface surface = acquireRenderSurface(size);
canvasKit.callMethod('setCurrentContext', <int>[surface.context]);
if (surface == null) return null; if (surface == null) return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册