Skip to content

Commit

Permalink
Impelement DisplayListDispatcher::transformReset. (flutter#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored and dnfield committed Apr 27, 2022
1 parent 75a9853 commit e381974
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions impeller/display_list/display_list_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,11 @@ void DisplayListDispatcher::transformFullPerspective(SkScalar mxx,
canvas_.Transform(xformation);
}

// |flutter::Dispatcher|
void DisplayListDispatcher::transformReset() {
canvas_.ResetTransform();
}

static Rect ToRect(const SkRect& rect) {
return Rect::MakeLTRB(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom);
}
Expand Down
3 changes: 3 additions & 0 deletions impeller/display_list/display_list_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class DisplayListDispatcher final : public flutter::Dispatcher {
SkScalar mwz,
SkScalar mwt) override;

// |flutter::Dispatcher|
void transformReset() override;

// |flutter::Dispatcher|
void clipRect(const SkRect& rect, SkClipOp clip_op, bool is_aa) override;

Expand Down

0 comments on commit e381974

Please sign in to comment.