diff --git a/shell/common/rasterizer.cc b/shell/common/rasterizer.cc index 6a2c2ee1f189d..2a2dc0278492a 100644 --- a/shell/common/rasterizer.cc +++ b/shell/common/rasterizer.cc @@ -404,9 +404,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