提交 32ba8596 编写于 作者: C Chinmay Garde 提交者: GitHub

Only attempt to draw in the rasterizer if a valid layer tree is received. (#2958)

上级 e4704cc4
......@@ -114,6 +114,10 @@ void RasterizerDirect::Draw(
}
void RasterizerDirect::DoDraw(std::unique_ptr<flow::LayerTree> layer_tree) {
if (layer_tree == nullptr) {
return;
}
// There is no way for the compositor to know how long the layer tree
// construction took. Fortunately, the layer tree does. Grab that time
// for instrumentation.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册