Skip to content

Commit 4234b34

Browse files
chinmaygardednfield
authored andcommitted
Minor: Add Canvas::Transform.
1 parent 18399a5 commit 4234b34

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

impeller/aiks/canvas.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ void Canvas::Concat(const Matrix& xformation) {
5353
xformation_stack_.back().xformation = xformation * GetCurrentTransformation();
5454
}
5555

56+
void Canvas::Transform(const Matrix& xformation) {
57+
Concat(xformation);
58+
}
59+
5660
const Matrix& Canvas::GetCurrentTransformation() const {
5761
return xformation_stack_.back().xformation;
5862
}

impeller/aiks/canvas.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class Canvas {
4141

4242
const Matrix& GetCurrentTransformation() const;
4343

44+
void Transform(const Matrix& xformation);
45+
4446
void Concat(const Matrix& xformation);
4547

4648
void Translate(const Vector3& offset);

0 commit comments

Comments
 (0)