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

Commit 42eb96d

Browse files
committed
[fuchsia] Debugging code for crash.
1 parent 6e6a653 commit 42eb96d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

shell/platform/fuchsia/flutter/gfx_external_view_embedder.cc

+11-2
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,17 @@ void GfxExternalViewEmbedder::SubmitFrame(
327327
const float view_elevation =
328328
kScenicZElevationBetweenLayers * scenic_layer_index +
329329
embedded_views_height;
330-
FML_CHECK(view_mutators.total_transform ==
331-
view_params.transformMatrix());
330+
331+
if (view_mutators.total_transform != view_params.transformMatrix()) {
332+
FML_LOG(ERROR) << "Failed assertion: view_mutators.total_transform "
333+
"!= view_params.transformMatrix()";
334+
FML_LOG(ERROR) << "view_mutators.total_transform:";
335+
view_mutators.total_transform.dump();
336+
FML_LOG(ERROR) << "view_params.transformMatrix():";
337+
view_params.transformMatrix().dump();
338+
FML_LOG(FATAL) << "view_mutators.total_transform "
339+
"!= view_params.transformMatrix()";
340+
}
332341

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

0 commit comments

Comments
 (0)