未验证 提交 2651beba 编写于 作者: K Kaushik Iska 提交者: GitHub

Exit before pushing a trace event when layer tree holder is empty (#19008)

上级 e1c622b4
......@@ -120,6 +120,11 @@ void Rasterizer::DrawLastLayerTree() {
}
void Rasterizer::Draw(std::shared_ptr<LayerTreeHolder> layer_tree_holder) {
if (layer_tree_holder->IsEmpty()) {
// We do not have any frame to raster.
FML_LOG(ERROR) << "empty frame!!!!!";
return;
}
TRACE_EVENT0("flutter", "GPURasterizer::Draw");
if (raster_thread_merger_ &&
!raster_thread_merger_->IsOnRasterizingThread()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册