This commit is contained in:
xxrl
2021-02-27 03:36:01 +08:00
committed by GitHub
parent 0d039190a8
commit c8fa179207

View File

@@ -274,12 +274,9 @@ void SceneBuilder::addPicture(double dx,
double dy,
Picture* picture,
int hints) {
SkPoint offset = SkPoint::Make(dx, dy);
SkRect pictureRect = picture->picture()->cullRect();
pictureRect.offset(offset.x(), offset.y());
auto layer = std::make_unique<flutter::PictureLayer>(
offset, UIDartState::CreateGPUObject(picture->picture()), !!(hints & 1),
!!(hints & 2));
SkPoint::Make(dx, dy), UIDartState::CreateGPUObject(picture->picture()),
!!(hints & 1), !!(hints & 2));
AddLayer(std::move(layer));
}