Flutter Engine
flutter::SceneUpdateContext::Entity Class Reference

#include <scene_update_context.h>

Inheritance diagram for flutter::SceneUpdateContext::Entity:
flutter::SceneUpdateContext::Clip flutter::SceneUpdateContext::Frame flutter::SceneUpdateContext::Transform

Public Member Functions

 Entity (std::shared_ptr< SceneUpdateContext > context)
 
virtual ~Entity ()
 
std::shared_ptr< SceneUpdateContextcontext ()
 
scenic::EntityNode & entity_node ()
 
virtual scenic::ContainerNode & embedder_node ()
 

Detailed Description

Definition at line 47 of file scene_update_context.h.

Constructor & Destructor Documentation

◆ Entity()

flutter::SceneUpdateContext::Entity::Entity ( std::shared_ptr< SceneUpdateContext context)

Definition at line 220 of file scene_update_context.cc.

221  : context_(context),
222  previous_entity_(context->top_entity_),
223  entity_node_(context->session_.get()) {
224  context->top_entity_ = this;
225 }
std::shared_ptr< SceneUpdateContext > context()

◆ ~Entity()

flutter::SceneUpdateContext::Entity::~Entity ( )
virtual

Definition at line 227 of file scene_update_context.cc.

References embedder_node(), and FML_DCHECK.

227  {
228  if (previous_entity_) {
229  previous_entity_->embedder_node().AddChild(entity_node_);
230  } else {
231  context_->root_node_.AddChild(entity_node_);
232  }
233 
234  FML_DCHECK(context_->top_entity_ == this);
235  context_->top_entity_ = previous_entity_;
236 }
#define FML_DCHECK(condition)
Definition: logging.h:86
virtual scenic::ContainerNode & embedder_node()

Member Function Documentation

◆ context()

std::shared_ptr<SceneUpdateContext> flutter::SceneUpdateContext::Entity::context ( )
inline

◆ embedder_node()

virtual scenic::ContainerNode& flutter::SceneUpdateContext::Entity::embedder_node ( )
inlinevirtual

Reimplemented in flutter::SceneUpdateContext::Frame.

Definition at line 54 of file scene_update_context.h.

Referenced by flutter::SceneUpdateContext::UpdateView(), and ~Entity().

54 { return entity_node_; }

◆ entity_node()

scenic::EntityNode& flutter::SceneUpdateContext::Entity::entity_node ( )
inline

The documentation for this class was generated from the following files: