From f3f1b7c0b7cdb10c1682ee8a036f005bcbebea68 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Fri, 2 Aug 2019 09:18:17 -0700 Subject: [PATCH] Revert "Remove one last final call to AddPart()" (flutter/engine#10440) --- engine/src/flutter/flow/scene_update_context.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/flow/scene_update_context.cc b/engine/src/flutter/flow/scene_update_context.cc index 337573f024..76c5619f3f 100644 --- a/engine/src/flutter/flow/scene_update_context.cc +++ b/engine/src/flutter/flow/scene_update_context.cc @@ -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,