Skip to content

Commit e982526

Browse files
zandersodnfield
authored andcommitted
Compensate for change to saveLayer (flutter#6)
1 parent fec0355 commit e982526

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

impeller/display_list/display_list_dispatcher.cc

+4-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ static std::optional<Rect> ToRect(const SkRect* rect) {
137137

138138
// |flutter::Dispatcher|
139139
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));
142144
}
143145

144146
// |flutter::Dispatcher|

impeller/display_list/display_list_dispatcher.h

+2-1
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)