未验证 提交 dc559064 编写于 作者: K Kaushik Iska 提交者: GitHub

Revert "Remove one last final call to AddPart()" (#10440)

上级 f54c39d5
......@@ -64,7 +64,7 @@ void SceneUpdateContext::CreateFrame(scenic::EntityNode entity_node,
Layer* layer) {
// Frames always clip their children.
SetEntityNodeClipPlanes(entity_node, rrect.getBounds());
// TODO(SCN-1274): SetClip() will be deleted.
// TODO(SCN-1274): AddPart() and SetClip() will be deleted.
entity_node.SetClip(0u, true /* clip to self */);
// We don't need a shape if the frame is zero size.
......@@ -285,7 +285,9 @@ SceneUpdateContext::Transform::~Transform() {
}
SceneUpdateContext::Shape::Shape(SceneUpdateContext& context)
: Entity(context), shape_node_(context.session()) {}
: Entity(context), shape_node_(context.session()) {
entity_node().AddPart(shape_node_);
}
SceneUpdateContext::Frame::Frame(SceneUpdateContext& context,
const SkRRect& rrect,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册