diff --git a/engine/src/flutter/impeller/aiks/canvas.cc b/engine/src/flutter/impeller/aiks/canvas.cc index 99726bffa8..6820291de7 100644 --- a/engine/src/flutter/impeller/aiks/canvas.cc +++ b/engine/src/flutter/impeller/aiks/canvas.cc @@ -53,6 +53,10 @@ void Canvas::Concat(const Matrix& xformation) { xformation_stack_.back().xformation = xformation * GetCurrentTransformation(); } +void Canvas::Transform(const Matrix& xformation) { + Concat(xformation); +} + const Matrix& Canvas::GetCurrentTransformation() const { return xformation_stack_.back().xformation; } diff --git a/engine/src/flutter/impeller/aiks/canvas.h b/engine/src/flutter/impeller/aiks/canvas.h index 94ebdea3d4..2bf6aeeed4 100644 --- a/engine/src/flutter/impeller/aiks/canvas.h +++ b/engine/src/flutter/impeller/aiks/canvas.h @@ -41,6 +41,8 @@ class Canvas { const Matrix& GetCurrentTransformation() const; + void Transform(const Matrix& xformation); + void Concat(const Matrix& xformation); void Translate(const Vector3& offset);