From d871e4da7f1b8b0e64036043becae0e03c80eb5b Mon Sep 17 00:00:00 2001 From: cfontas Date: Wed, 31 Jul 2019 20:05:00 -0700 Subject: [PATCH] Remove one last final call to AddPart() (flutter/engine#10273) * Remove one last final call to AddPart() * fix merge conflict * fix how i merged * remove add part again * remove pointer syntax * fix formatting --- engine/src/flutter/flow/scene_update_context.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/flow/scene_update_context.cc b/engine/src/flutter/flow/scene_update_context.cc index 76c5619f3f..337573f024 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): AddPart() and SetClip() will be deleted. + // TODO(SCN-1274): 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,9 +285,7 @@ SceneUpdateContext::Transform::~Transform() { } SceneUpdateContext::Shape::Shape(SceneUpdateContext& context) - : Entity(context), shape_node_(context.session()) { - entity_node().AddPart(shape_node_); -} + : Entity(context), shape_node_(context.session()) {} SceneUpdateContext::Frame::Frame(SceneUpdateContext& context, const SkRRect& rrect,