mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Compensate for change to saveLayer (flutter/engine#6)
This commit is contained in:
parent
a7c3fab3d8
commit
fe169020a0
@ -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|
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user