Skip to content

Commit 841401d

Browse files
authored
restore FML_DCHECK removed due to a code reviewing error (flutter#20953)
1 parent c2e7010 commit 841401d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

shell/common/rasterizer.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,7 @@ RasterStatus Rasterizer::DoDraw(
413413

414414
RasterStatus Rasterizer::DrawToSurface(flutter::LayerTree& layer_tree) {
415415
TRACE_EVENT0("flutter", "Rasterizer::DrawToSurface");
416-
if (!surface_) {
417-
return RasterStatus::kFailed;
418-
}
416+
FML_DCHECK(surface_);
419417

420418
// There is no way for the compositor to know how long the layer tree
421419
// construction took. Fortunately, the layer tree does. Grab that time

0 commit comments

Comments
 (0)