Add a display list op to clear to transformation stack. (#32050)
This allows for the implementation of the
DisplayListCanvasRecoder::didSetM44. Instead of another operation that
clears the transformation stack along with setting a new transformation
on it. A single no-payload operation that clears the stack is added.
Existing ops to push to the stack are then reused.
diff --git a/display_list/display_list_builder.cc b/display_list/display_list_builder.cc
index 0a1c4fb..0d4f3bb 100644
--- a/display_list/display_list_builder.cc
+++ b/display_list/display_list_builder.cc
@@ -427,8 +427,10 @@
mwx, mwy, mwz, mwt);
}
}
-
// clang-format on
+void DisplayListBuilder::transformReset() {
+ Push<TransformResetOp>(0, 0);
+}
void DisplayListBuilder::clipRect(const SkRect& rect,
SkClipOp clip_op,