Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[fuchsia] Debugging code for crash. #38518

Merged
merged 1 commit into from
Dec 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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