File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,10 @@ static std::optional<Rect> ToRect(const SkRect* rect) {
137137
138138// |flutter::Dispatcher|
139139void DisplayListDispatcher::saveLayer (const SkRect* bounds,
140- bool restore_with_paint) {
141- canvas_.SaveLayer (restore_with_paint ? paint_ : Paint{}, ToRect (bounds));
140+ const flutter::SaveLayerOptions options) {
141+ canvas_.SaveLayer (
142+ options.renders_with_attributes () ? paint_ : Paint{},
143+ ToRect (bounds));
142144}
143145
144146// |flutter::Dispatcher|
Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ class DisplayListDispatcher final : public flutter::Dispatcher {
7575 void save () override ;
7676
7777 // |flutter::Dispatcher|
78- void saveLayer (const SkRect* bounds, bool restore_with_paint) override ;
78+ void saveLayer (const SkRect* bounds,
79+ const flutter::SaveLayerOptions options) override ;
7980
8081 // |flutter::Dispatcher|
8182 void restore () override ;
You can’t perform that action at this time.
0 commit comments