File tree 2 files changed +6
-3
lines changed
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) {
137
137
138
138
// |flutter::Dispatcher|
139
139
void 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));
142
144
}
143
145
144
146
// |flutter::Dispatcher|
Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ class DisplayListDispatcher final : public flutter::Dispatcher {
75
75
void save () override ;
76
76
77
77
// |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 ;
79
80
80
81
// |flutter::Dispatcher|
81
82
void restore () override ;
You can’t perform that action at this time.
0 commit comments