Skip to content

Commit

Permalink
Compensate for change to saveLayer (flutter#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored and dnfield committed Apr 27, 2022
1 parent fec0355 commit e982526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions impeller/display_list/display_list_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ static std::optional<Rect> ToRect(const SkRect* rect) {

// |flutter::Dispatcher|
void DisplayListDispatcher::saveLayer(const SkRect* bounds,
bool restore_with_paint) {
canvas_.SaveLayer(restore_with_paint ? paint_ : Paint{}, ToRect(bounds));
const flutter::SaveLayerOptions options) {
canvas_.SaveLayer(
options.renders_with_attributes() ? paint_ : Paint{},
ToRect(bounds));
}

// |flutter::Dispatcher|
Expand Down
3 changes: 2 additions & 1 deletion impeller/display_list/display_list_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class DisplayListDispatcher final : public flutter::Dispatcher {
void save() override;

// |flutter::Dispatcher|
void saveLayer(const SkRect* bounds, bool restore_with_paint) override;
void saveLayer(const SkRect* bounds,
const flutter::SaveLayerOptions options) override;

// |flutter::Dispatcher|
void restore() override;
Expand Down

0 comments on commit e982526

Please sign in to comment.