restore FML_DCHECK removed due to a code reviewing error (flutter/engine#20953)

This commit is contained in:
Jim Graham
2020-09-03 14:46:28 -07:00
committed by GitHub
parent 567b8b58d2
commit ef54c35abc

View File

@@ -413,9 +413,7 @@ RasterStatus Rasterizer::DoDraw(
RasterStatus Rasterizer::DrawToSurface(flutter::LayerTree& layer_tree) {
TRACE_EVENT0("flutter", "Rasterizer::DrawToSurface");
if (!surface_) {
return RasterStatus::kFailed;
}
FML_DCHECK(surface_);
// There is no way for the compositor to know how long the layer tree
// construction took. Fortunately, the layer tree does. Grab that time