Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit de148da

Browse files
authored
remove useless code (#24546)
1 parent 5016189 commit de148da

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/ui/compositing/scene_builder.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,9 @@ void SceneBuilder::addPicture(double dx,
274274
double dy,
275275
Picture* picture,
276276
int hints) {
277-
SkPoint offset = SkPoint::Make(dx, dy);
278-
SkRect pictureRect = picture->picture()->cullRect();
279-
pictureRect.offset(offset.x(), offset.y());
280277
auto layer = std::make_unique<flutter::PictureLayer>(
281-
offset, UIDartState::CreateGPUObject(picture->picture()), !!(hints & 1),
282-
!!(hints & 2));
278+
SkPoint::Make(dx, dy), UIDartState::CreateGPUObject(picture->picture()),
279+
!!(hints & 1), !!(hints & 2));
283280
AddLayer(std::move(layer));
284281
}
285282

0 commit comments

Comments
 (0)