Skip to content

Commit

Permalink
add log flutter#6092
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Oct 9, 2022
1 parent ccfe770 commit d29712e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/common/rasterizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,15 @@ RasterStatus Rasterizer::DoDraw(
if (raster_status == RasterStatus::kSuccess) {
last_layer_tree_ = std::move(layer_tree);
} else if (ShouldResubmitFrame(raster_status)) {
TRACE_EVENT0("flutter", "RasterResubmit"); // NOTE MODIFIED add
resubmitted_layer_tree_ = std::move(layer_tree);
resubmitted_recorder_ = frame_timings_recorder->CloneUntil(
FrameTimingsRecorder::State::kBuildEnd);
FML_DLOG(INFO)
<< "hi Rasterizer::DoDraw early return since ShouldResubmitFrame";
return raster_status;
} else if (raster_status == RasterStatus::kDiscarded) {
TRACE_EVENT0("flutter", "RasterDiscarded"); // NOTE MODIFIED add
FML_DLOG(INFO) << "hi Rasterizer::DoDraw early return since kDiscarded";
return raster_status;
}
Expand Down

0 comments on commit d29712e

Please sign in to comment.