提交 c9549715 编写于 作者: G George Kulakowski

Merge pull request #2151 from abarth/fix_crash

Don't crash when RasterizerMojo::Draw happens without a context
......@@ -46,6 +46,10 @@ void RasterizerMojo::ConnectToRasterizer (
void RasterizerMojo::Draw(uint64_t layer_tree_ptr,
const DrawCallback& callback) {
TRACE_EVENT0("flutter", "RasterizerMojo::Draw");
if (!context_) {
callback.Run();
return;
}
scoped_ptr<compositor::LayerTree> layer_tree(
reinterpret_cast<compositor::LayerTree*>(layer_tree_ptr));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册