Skip to content

Commit

Permalink
[fuchsia] Debugging code for crash. (#38518)
Browse files Browse the repository at this point in the history
  • Loading branch information
akbiggs authored Dec 27, 2022
1 parent 6e6a653 commit 10ce8cd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions shell/platform/fuchsia/flutter/gfx_external_view_embedder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,17 @@ void GfxExternalViewEmbedder::SubmitFrame(
const float view_elevation =
kScenicZElevationBetweenLayers * scenic_layer_index +
embedded_views_height;
FML_CHECK(view_mutators.total_transform ==
view_params.transformMatrix());

if (view_mutators.total_transform != view_params.transformMatrix()) {
FML_LOG(ERROR) << "Failed assertion: view_mutators.total_transform "
"!= view_params.transformMatrix()";
FML_LOG(ERROR) << "view_mutators.total_transform:";
view_mutators.total_transform.dump();
FML_LOG(ERROR) << "view_params.transformMatrix():";
view_params.transformMatrix().dump();
FML_LOG(FATAL) << "view_mutators.total_transform "
"!= view_params.transformMatrix()";
}

// Set clips for the platform view.
if (view_mutators.clips != view_holder.mutators.clips) {
Expand Down

0 comments on commit 10ce8cd

Please sign in to comment.