未验证 提交 8eb37a12 编写于 作者: M Mikkel Nygaard Ravn 提交者: GitHub

Fix compile error in scene_update_context (#4311)

上级 8d8203cc
......@@ -195,9 +195,12 @@ SceneUpdateContext::ExecutePaintTasks(CompositorContext::ScopedFrame& frame) {
for (auto& task : paint_tasks_) {
FXL_DCHECK(task.surface);
SkCanvas* canvas = task.surface->GetSkiaSurface()->getCanvas();
Layer::PaintContext context = {*canvas, frame.context().frame_time(),
Layer::PaintContext context = {*canvas,
frame.context().frame_time(),
frame.context().engine_time(),
frame.context().memory_usage(), false};
frame.context().memory_usage(),
frame.context().texture_registry(),
false};
canvas->restoreToCount(1);
canvas->save();
canvas->clear(task.background_color);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册