1 #ifndef DALI_INTERNAL_SCENE_GRAPH_UPDATE_MANAGER_H
2 #define DALI_INTERNAL_SCENE_GRAPH_UPDATE_MANAGER_H
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/common/vector-wrapper.h>
23 #include <dali/public-api/common/dali-common.h>
25 #include <dali/internal/common/message.h>
26 #include <dali/internal/common/type-abstraction-enums.h>
27 #include <dali/internal/common/shader-saver.h>
28 #include <dali/internal/event/common/event-thread-services.h>
29 #include <dali/internal/update/animation/scene-graph-animation.h>
30 #include <dali/internal/update/common/property-resetter.h>
31 #include <dali/internal/update/common/scene-graph-buffers.h>
32 #include <dali/internal/update/common/scene-graph-property-notification.h>
33 #include <dali/internal/update/nodes/node.h>
34 #include <dali/internal/update/nodes/scene-graph-layer.h>
35 #include <dali/internal/update/rendering/scene-graph-renderer.h> // for OwnerPointer< Renderer >
36 #include <dali/internal/update/rendering/scene-graph-texture-set.h> // for OwnerPointer< TextureSet >
37 #include <dali/internal/update/gestures/scene-graph-pan-gesture.h>
38 #include <dali/internal/update/render-tasks/scene-graph-camera.h>
39 #include <dali/internal/render/shaders/scene-graph-shader.h> // for OwnerPointer< Shader >
40 #include <dali/internal/render/renderers/render-property-buffer.h>
41 #include <dali/internal/event/rendering/texture-impl.h>
48 class GlSyncAbstraction;
49 class RenderController;
51 } // namespace Integration
56 class PropertyNotifier;
57 class NotificationManager;
58 class CompleteNotificationInterface;
66 // value types used by messages
67 template <> struct ParameterType< PropertyNotification::NotifyMode >
68 : public BasicType< PropertyNotification::NotifyMode > {};
77 class RenderTaskProcessor;
83 SceneGraph::Node* node;
85 NodeDepthPair( SceneGraph::Node* node, uint32_t sortedDepth )
87 sortedDepth(sortedDepth)
98 void Add( SceneGraph::Node* node, uint32_t sortedDepth )
100 nodeDepths.push_back( NodeDepthPair( node, sortedDepth ) );
103 std::vector<NodeDepthPair> nodeDepths;
108 * UpdateManager maintains a scene graph i.e. a tree of nodes as well as
109 * other scene graph property owning objects.
110 * It controls the Update traversal, in which nodes are repositioned/animated,
111 * and organizes the the culling and rendering of the scene.
112 * It also maintains the lifecycle of nodes and other property owners that are
113 * disconnected from the scene graph.
115 class UpdateManager : public ShaderSaver
120 * Construct a new UpdateManager.
121 * @param[in] notificationManager This should be notified when animations have finished.
122 * @param[in] animationPlaylist The CompleteNotificationInterface that handles the animations
123 * @param[in] propertyNotifier The PropertyNotifier
124 * @param[in] discardQueue Nodes are added here when disconnected from the scene-graph.
125 * @param[in] controller After messages are flushed, we request a render from the RenderController.
126 * @param[in] renderManager This is responsible for rendering the results of each "update".
127 * @param[in] renderQueue Used to queue messages for the next render.
128 * @param[in] renderTaskProcessor Handles RenderTasks and RenderInstrucitons.
130 UpdateManager( NotificationManager& notificationManager,
131 CompleteNotificationInterface& animationPlaylist,
132 PropertyNotifier& propertyNotifier,
133 DiscardQueue& discardQueue,
134 Integration::RenderController& controller,
135 RenderManager& renderManager,
136 RenderQueue& renderQueue,
137 RenderTaskProcessor& renderTaskProcessor );
142 virtual ~UpdateManager();
144 // Node connection methods
147 * Installs a new layer as the root node.
148 * @pre The UpdateManager does not already have an installed root node.
149 * @pre The layer is of derived Node type Layer.
150 * @pre The layer does not have a parent.
151 * @param[in] layer The new root node.
152 * @param[in] systemLevel True if using the system-level overlay.
153 * @post The node is owned by UpdateManager.
155 void InstallRoot( OwnerPointer<Layer>& layer, bool systemLevel );
158 * Add a Node; UpdateManager takes ownership.
159 * @pre The node does not have a parent.
160 * @note even though nodes are pool allocated, they also contain other heap allocated data, thus using OwnerPointer when transferring the data
161 * @param[in] node The node to add.
163 void AddNode( OwnerPointer<Node>& node );
166 * Connect a Node to the scene-graph.
167 * A disconnected Node has has no parent or children, and its properties cannot be animated/constrained.
168 * @pre The node does not already have a parent.
169 * @param[in] parent The new parent node.
171 void ConnectNode( Node* parent, Node* node );
174 * Disconnect a Node from the scene-graph.
175 * A disconnected Node has has no parent or children, and its properties cannot be animated/constrained.
176 * @pre The node has a parent.
177 * @param[in] node The node to disconnect.
179 void DisconnectNode( Node* node );
182 * Destroy a Node owned by UpdateManager.
183 * This is not immediate; Nodes are passed to the RenderQueue to allow GL resources to be deleted.
184 * In the following update, the previously queued Nodes may be deleted.
185 * @pre The node has been disconnected from the scene-graph i.e. has no parent or children.
186 * @param[in] node The node to destroy.
188 void DestroyNode( Node* node );
191 * Add a camera on scene
192 * @param[in] camera The camera to add
194 void AddCamera( OwnerPointer< Camera >& camera );
197 * Remove a camera from scene
198 * @param[in] camera to remove
200 void RemoveCamera( const Camera* camera );
203 * Add a newly created object.
204 * @param[in] object The object to add.
205 * @post The object is owned by UpdateManager.
207 void AddObject( OwnerPointer<PropertyOwner>& object );
211 * @param[in] object The object to remove.
213 void RemoveObject( PropertyOwner* object );
218 * Add a newly created animation.
219 * @param[in] animation The animation to add.
220 * @post The animation is owned by UpdateManager.
222 void AddAnimation( OwnerPointer< SceneGraph::Animation >& animation );
226 * @param[in] animation The animation to stop.
228 void StopAnimation( Animation* animation );
231 * Remove an animation.
232 * @param[in] animation The animation to remove.
234 void RemoveAnimation( Animation* animation );
237 * Query whether any animations are currently running.
238 * @return True if any animations are running.
240 bool IsAnimationRunning() const;
243 * Add a property resetter. UpdateManager takes ownership of the object.
244 * It will be killed by UpdateManager when the associated animator or
245 * constraint has finished; or the property owner of the property is destroyed.
247 void AddPropertyResetter( OwnerPointer<PropertyResetterBase>& propertyResetter );
249 // Property Notification
252 * Add a newly created property notification
253 * @param[in] propertyNotification The notification to add
254 * @post The propertyNotification is owned by UpdateManager.
256 void AddPropertyNotification( OwnerPointer< PropertyNotification >& propertyNotification );
259 * Remove a property notification
260 * @param[in] propertyNotification The notification to remove
262 void RemovePropertyNotification( PropertyNotification* propertyNotification );
265 * Set Notify state for PropertyNotification
266 * @param[in] propertyNotification The notification to remove
267 * @param[in] notifyMode The notification mode.
269 void PropertyNotificationSetNotify( PropertyNotification* propertyNotification, PropertyNotification::NotifyMode notifyMode );
274 * Add a newly created shader.
275 * @param[in] shader The shader to add.
276 * @post The shader is owned by the UpdateManager.
278 void AddShader( OwnerPointer< Shader >& shader );
282 * @pre The shader has been added to the UpdateManager.
283 * @param[in] shader The shader to remove.
284 * @post The shader is destroyed.
286 void RemoveShader( Shader* shader );
289 * Set the shader program for a Shader object
290 * @param[in] shader The shader to modify
291 * @param[in] shaderData Source code, hash over source, and optional compiled binary for the shader program
292 * @param[in] modifiesGeometry True if the vertex shader modifies geometry
294 void SetShaderProgram( Shader* shader, Internal::ShaderDataPtr shaderData, bool modifiesGeometry );
297 * @brief Accept compiled shaders passed back on render thread for saving.
298 * @param[in] shaderData Source code, hash over source, and corresponding compiled binary to be saved.
300 virtual void SaveBinary( Internal::ShaderDataPtr shaderData );
303 * @brief Set the destination for compiled shader binaries to be passed on to.
304 * The dispatcher passed in will be called from the update thread.
305 * @param[in] upstream A sink for ShaderDatas to be passed into.
307 void SetShaderSaver( ShaderSaver& upstream );
312 * Add a new renderer to scene
313 * @param renderer to add
315 void AddRenderer( OwnerPointer< Renderer >& renderer );
318 * Add a renderer from scene
319 * @param renderer to remove
321 void RemoveRenderer( Renderer* renderer );
326 * Set the pan gesture processor.
327 * Pan Gesture processor lives for the lifetime of UpdateManager
328 * @param[in] gesture The gesture processor.
329 * @post The gestureProcessor is owned by the UpdateManager.
331 void SetPanGestureProcessor( PanGesture* gestureProcessor );
336 * Add a newly created TextureSet.
337 * @param[in] textureSet The texture set to add.
338 * @post The TextureSet is owned by the UpdateManager.
340 void AddTextureSet( OwnerPointer< TextureSet >& textureSet );
343 * Remove a TextureSet.
344 * @pre The TextureSet has been added to the UpdateManager.
345 * @param[in] textureSet The TextureSet to remove.
346 * @post The TextureSet is destroyed.
348 void RemoveTextureSet( TextureSet* textureSet );
353 * Get the scene graph side list of RenderTasks.
354 * @param[in] systemLevel True if using the system-level overlay.
355 * @return The list of render tasks
357 RenderTaskList* GetRenderTaskList( bool systemLevel );
359 // Message queue handling
362 * Reserve space for another message in the queue; this must then be initialized by the caller.
363 * The message will be read from the update-thread after the next FlushMessages is called.
364 * @post Calling this method may invalidate any previously returned slots.
365 * @param[in] size The message size with respect to the size of type "char".
366 * @param[in] updateScene A flag, when true denotes that the message will cause the scene-graph node tree to require an update.
367 * @note the default value of updateScene should match that in EventThreadServices::ReserveMessageSlot.
368 * @return A pointer to the first char allocated for the message.
370 unsigned int* ReserveMessageSlot( std::size_t size, bool updateScene = true );
373 * @return the current event-buffer index.
375 BufferIndex GetEventBufferIndex() const
377 // inlined as its called often from event thread
378 return mSceneGraphBuffers.GetEventBufferIndex();
382 * Called by the event-thread to signal that FlushQueue will be called
383 * e.g. when it has finished event processing.
385 void EventProcessingStarted();
388 * Flush the set of messages, which were previously stored with QueueMessage().
389 * Calls to this thread-safe method should be minimized, to avoid thread blocking.
391 * @return True if there are messages to process.
396 * Add a new sampler to RenderManager
397 * @param[in] sampler The sampler to add
398 * @post Sends a message to RenderManager to add the sampler.
399 * The sampler will be owned by RenderManager
401 void AddSampler( OwnerPointer< Render::Sampler >& sampler );
404 * Removes an existing sampler from RenderManager
405 * @param[in] sampler The sampler to remove
406 * @post The sampler will be destroyed in the render thread
408 void RemoveSampler( Render::Sampler* sampler );
411 * Sets the filter modes for an existing sampler
412 * @param[in] sampler The sampler
413 * @param[in] minFilterMode The filter to use under minification
414 * @param[in] magFilterMode The filter to use under magnification
416 void SetFilterMode( Render::Sampler* sampler, unsigned int minFilterMode, unsigned int magFilterMode );
419 * Sets the wrap mode for an existing sampler
420 * @param[in] sampler The sampler
421 * @param[in] rWrapMode Wrapping mode in z direction
422 * @param[in] sWrapMode Wrapping mode in x direction
423 * @param[in] tWrapMode Wrapping mode in y direction
425 void SetWrapMode( Render::Sampler* sampler, unsigned int rWrapMode, unsigned int sWrapMode, unsigned int tWrapMode );
428 * Add a new property buffer to RenderManager
429 * @param[in] propertryBuffer The property buffer to add
430 * @post Sends a message to RenderManager to add the property buffer.
431 * The property buffer will be owned by RenderManager
433 void AddPropertyBuffer( OwnerPointer< Render::PropertyBuffer >& propertryBuffer );
436 * Removes an existing PropertyBuffer from RenderManager
437 * @param[in] propertryBuffer The property buffer to remove
438 * @post The property buffer will be destroyed in the render thread
440 void RemovePropertyBuffer( Render::PropertyBuffer* propertryBuffer );
443 * Sets the format of an existing property buffer
444 * @param[in] propertyBuffer The property buffer.
445 * @param[in] format The new format of the buffer
446 * @post Sends a message to RenderManager to set the new format to the property buffer.
448 void SetPropertyBufferFormat( Render::PropertyBuffer* propertyBuffer, OwnerPointer< Render::PropertyBuffer::Format>& format );
451 * Sets the data of an existing property buffer
452 * @param[in] propertyBuffer The property buffer.
453 * @param[in] data The new data of the buffer
454 * @param[in] size The new size of the buffer
455 * @post Sends a message to RenderManager to set the new data to the property buffer.
457 void SetPropertyBufferData( Render::PropertyBuffer* propertyBuffer, OwnerPointer< Vector<char> >& data, size_t size );
460 * Adds a geometry to the RenderManager
461 * @param[in] geometry The geometry to add
462 * @post Sends a message to RenderManager to add the Geometry
463 * The geometry will be owned by RenderManager
465 void AddGeometry( OwnerPointer< Render::Geometry >& geometry );
468 * Removes an existing Geometry from RenderManager
469 * @param[in] geometry The geometry to remove
470 * @post The geometry will be destroyed in the render thread
472 void RemoveGeometry( Render::Geometry* geometry );
475 * Sets the geometry type of an existing Geometry
476 * @param[in] geometry The geometry
477 * @param[in] geometryType The type of the geometry
479 void SetGeometryType( Render::Geometry* geometry, unsigned int geometryType );
482 * Sets the index buffer to be used by a geometry
483 * @param[in] geometry The geometry
484 * @param[in] indices A vector containing the indices for the geometry
486 void SetIndexBuffer( Render::Geometry* geometry, Dali::Vector<unsigned short>& indices );
489 * Adds a vertex buffer to a geometry
490 * @param[in] geometry The geometry
491 * @param[in] propertyBuffer The property buffer
493 void AttachVertexBuffer( Render::Geometry* geometry, Render::PropertyBuffer* propertyBuffer );
496 * Removes a vertex buffer from a geometry
497 * @param[in] geometry The geometry
498 * @param[in] propertyBuffer The property buffer
500 void RemoveVertexBuffer( Render::Geometry* geometry, Render::PropertyBuffer* propertyBuffer );
503 * Adds a texture to the render manager
504 * @param[in] texture The texture to add
505 * The texture will be owned by RenderManager
507 void AddTexture( OwnerPointer< Render::Texture >& texture );
510 * Removes a texture from the render manager
511 * @param[in] texture The texture to remove
512 * @post The texture will be destroyed in the render thread
514 void RemoveTexture( Render::Texture* texture );
517 * Uploads data to a texture owned by the RenderManager
518 * @param[in] texture The texture
519 * @param[in] pixelData The pixel data object
520 * @param[in] params The parameters for the upload
522 void UploadTexture( Render::Texture* texture, PixelDataPtr pixelData, const Texture::UploadParams& params );
525 * Generates mipmaps for a texture owned by the RenderManager
526 * @param[in] texture The texture
528 void GenerateMipmaps( Render::Texture* texture );
531 * Adds a framebuffer to the render manager
532 * @param[in] frameBuffer The framebuffer to add
533 * The framebuffer will be owned by RenderManager
535 void AddFrameBuffer( Render::FrameBuffer* frameBuffer );
538 * Removes a FrameBuffer from the render manager
539 * @param[in] frameBuffer The FrameBuffer to remove
540 * @post The FrameBuffer will be destroyed in the render thread
542 void RemoveFrameBuffer( Render::FrameBuffer* frameBuffer );
545 * Attach a texture as color output to an existing FrameBuffer
546 * @param[in] frameBuffer The FrameBuffer
547 * @param[in] texture The texture that will be used as output when rendering
548 * @param[in] mipmapLevel The mipmap of the texture to be attached
549 * @param[in] layer Indicates which layer of a cube map or array texture to attach. Unused for 2D textures
551 void AttachColorTextureToFrameBuffer( Render::FrameBuffer* frameBuffer, Render::Texture* texture, unsigned int mipmapLevel, unsigned int face );
556 * Performs an Update traversal on the scene-graph.
557 * @param[in] elapsedSeconds The elapsed time that should be applied to animations.
558 * @param[in] lastVSyncTimeMilliseconds The last time, in milliseconds, that we had a VSync.
559 * @param[in] nextVSyncTimeMilliseconds The estimated time, in milliseconds, of the next VSync.
560 * @param[in] renderToFboEnabled Whether rendering into the Frame Buffer Object is enabled.
561 * @param[in] isRenderingToFbo Whether this frame is being rendered into the Frame Buffer Object.
562 * @return True if further updates are required e.g. during animations.
564 unsigned int Update( float elapsedSeconds,
565 unsigned int lastVSyncTimeMilliseconds,
566 unsigned int nextVSyncTimeMilliseconds,
567 bool renderToFboEnabled,
568 bool isRenderingToFbo );
571 * Set the background color i.e. the glClear color used at the beginning of each frame.
572 * @param[in] color The new background color.
574 void SetBackgroundColor(const Vector4& color);
577 * Set the default surface rect.
578 * @param[in] rect The rect value representing the surface.
580 void SetDefaultSurfaceRect( const Rect<int>& rect );
583 * @copydoc Dali::Stage::KeepRendering()
585 void KeepRendering( float durationSeconds );
588 * Sets the depths of all layers.
589 * @param layers The layers in depth order.
590 * @param[in] systemLevel True if using the system-level overlay.
592 void SetLayerDepths( const std::vector< Layer* >& layers, bool systemLevel );
595 * Set the depth indices of all nodes (in LayerUI's)
596 * @param[in] nodeDepths A vector of nodes and associated depth indices
598 void SetDepthIndices( OwnerPointer< NodeDepths >& nodeDepths );
601 * Query wheter the default surface rect is changed or not.
602 * @return true if the default surface rect is changed.
604 bool IsDefaultSurfaceRectChanged();
609 UpdateManager(const UpdateManager&);
612 UpdateManager& operator=(const UpdateManager& rhs);
615 * Helper to check whether the update-thread should keep going.
616 * @param[in] elapsedSeconds The time in seconds since the previous update.
617 * @return True if the update-thread should keep going.
619 unsigned int KeepUpdatingCheck( float elapsedSeconds ) const;
622 * Helper to reset all Node properties
623 * @param[in] bufferIndex to use
625 void ResetProperties( BufferIndex bufferIndex );
628 * Perform gesture updates.
629 * @param[in] bufferIndex to use
630 * @param[in] lastVSyncTime The last VSync time in milliseconds.
631 * @param[in] nextVSyncTime The estimated time of the next VSync in milliseconds.
632 * @return true, if any properties were updated.
634 bool ProcessGestures( BufferIndex bufferIndex, unsigned int lastVSyncTimeMilliseconds, unsigned int nextVSyncTimeMilliseconds );
637 * Perform animation updates
638 * @param[in] bufferIndex to use
639 * @param[in] elapsedSeconds time since last frame
641 void Animate( BufferIndex bufferIndex, float elapsedSeconds );
644 * Applies constraints to CustomObjects
645 * @param[in] bufferIndex to use
647 void ConstrainCustomObjects( BufferIndex bufferIndex );
650 * Applies constraints to RenderTasks
651 * @param[in] bufferIndex to use
653 void ConstrainRenderTasks( BufferIndex bufferIndex );
656 * Applies constraints to Shaders
657 * @param[in] bufferIndex to use
659 void ConstrainShaders( BufferIndex bufferIndex );
662 * Perform property notification updates
663 * @param[in] bufferIndex to use
665 void ProcessPropertyNotifications( BufferIndex bufferIndex );
668 * Pass shader binaries queued here on to event thread.
670 void ForwardCompiledShadersToEventThread();
673 * Update node shaders, opacity, geometry etc.
674 * @param[in] bufferIndex to use
676 void UpdateNodes( BufferIndex bufferIndex );
680 * @param[in] bufferIndex to use
682 void UpdateRenderers( BufferIndex bufferIndex );
686 // needs to be direct member so that getter for event buffer can be inlined
687 SceneGraphBuffers mSceneGraphBuffers;
694 // Messages for UpdateManager
696 inline void InstallRootMessage( UpdateManager& manager, OwnerPointer<Layer>& root, bool systemLevel )
698 // Message has ownership of Layer while in transit from event -> update
699 typedef MessageValue2< UpdateManager, OwnerPointer<Layer>, bool > LocalType;
701 // Reserve some memory inside the message queue
702 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
704 // Construct message in the message queue memory; note that delete should not be called on the return value
705 new (slot) LocalType( &manager, &UpdateManager::InstallRoot, root, systemLevel );
708 inline void AddNodeMessage( UpdateManager& manager, OwnerPointer<Node>& node )
710 // Message has ownership of Node while in transit from event -> update
711 typedef MessageValue1< UpdateManager, OwnerPointer<Node> > LocalType;
713 // Reserve some memory inside the message queue
714 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
716 // Construct message in the message queue memory; note that delete should not be called on the return value
717 new (slot) LocalType( &manager, &UpdateManager::AddNode, node );
720 inline void ConnectNodeMessage( UpdateManager& manager, const Node& constParent, const Node& constChild )
722 // Update thread can edit the object
723 Node& parent = const_cast< Node& >( constParent );
724 Node& child = const_cast< Node& >( constChild );
726 typedef MessageValue2< UpdateManager, Node*, Node* > LocalType;
728 // Reserve some memory inside the message queue
729 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
731 // Construct message in the message queue memory; note that delete should not be called on the return value
732 new (slot) LocalType( &manager, &UpdateManager::ConnectNode, &parent, &child );
735 inline void DisconnectNodeMessage( UpdateManager& manager, const Node& constNode )
737 // Scene graph thread can modify this object.
738 Node& node = const_cast< Node& >( constNode );
740 typedef MessageValue1< UpdateManager, Node* > LocalType;
742 // Reserve some memory inside the message queue
743 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
745 // Construct message in the message queue memory; note that delete should not be called on the return value
746 new (slot) LocalType( &manager, &UpdateManager::DisconnectNode, &node );
749 inline void DestroyNodeMessage( UpdateManager& manager, const Node& constNode )
751 // Scene graph thread can destroy this object.
752 Node& node = const_cast< Node& >( constNode );
754 typedef MessageValue1< UpdateManager, Node* > LocalType;
756 // Reserve some memory inside the message queue
757 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
759 // Construct message in the message queue memory; note that delete should not be called on the return value
760 new (slot) LocalType( &manager, &UpdateManager::DestroyNode, &node );
763 inline void AddCameraMessage( UpdateManager& manager, OwnerPointer< Camera >& camera )
765 // Message has ownership of Camera while in transit from event -> update
766 typedef MessageValue1< UpdateManager, OwnerPointer< Camera > > LocalType;
768 // Reserve some memory inside the message queue
769 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
771 // Construct message in the message queue memory; note that delete should not be called on the return value
772 new (slot) LocalType( &manager, &UpdateManager::AddCamera, camera );
775 inline void RemoveCameraMessage( UpdateManager& manager, const Camera* camera )
777 typedef MessageValue1< UpdateManager, const Camera* > LocalType;
779 // Reserve some memory inside the message queue
780 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
782 // Construct message in the message queue memory; note that delete should not be called on the return value
783 new (slot) LocalType( &manager, &UpdateManager::RemoveCamera, camera );
786 inline void AddObjectMessage( UpdateManager& manager, OwnerPointer<PropertyOwner>& object )
788 // Message has ownership of object while in transit from event -> update
789 typedef MessageValue1< UpdateManager, OwnerPointer<PropertyOwner> > LocalType;
791 // Reserve some memory inside the message queue
792 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
794 // Construct message in the message queue memory; note that delete should not be called on the return value
795 new (slot) LocalType( &manager, &UpdateManager::AddObject, object );
798 inline void RemoveObjectMessage( UpdateManager& manager, PropertyOwner* object )
800 typedef MessageValue1< UpdateManager, PropertyOwner* > LocalType;
802 // Reserve some memory inside the message queue
803 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
805 // Construct message in the message queue memory; note that delete should not be called on the return value
806 new (slot) LocalType( &manager, &UpdateManager::RemoveObject, object );
809 inline void AddAnimationMessage( UpdateManager& manager, OwnerPointer< SceneGraph::Animation >& animation )
811 typedef MessageValue1< UpdateManager, OwnerPointer< SceneGraph::Animation > > LocalType;
813 // Reserve some memory inside the message queue
814 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
816 // Construct message in the message queue memory; note that delete should not be called on the return value
817 new (slot) LocalType( &manager, &UpdateManager::AddAnimation, animation );
820 inline void StopAnimationMessage( UpdateManager& manager, const Animation& constAnimation )
822 // The scene-graph thread owns this object so it can safely edit it.
823 Animation& animation = const_cast< Animation& >( constAnimation );
825 typedef MessageValue1< UpdateManager, Animation* > LocalType;
827 // Reserve some memory inside the message queue
828 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
830 // Construct message in the message queue memory; note that delete should not be called on the return value
831 new (slot) LocalType( &manager, &UpdateManager::StopAnimation, &animation );
834 inline void RemoveAnimationMessage( UpdateManager& manager, const Animation& constAnimation )
836 // The scene-graph thread owns this object so it can safely edit it.
837 Animation& animation = const_cast< Animation& >( constAnimation );
839 typedef MessageValue1< UpdateManager, Animation* > LocalType;
841 // Reserve some memory inside the message queue
842 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
844 // Construct message in the message queue memory; note that delete should not be called on the return value
845 new (slot) LocalType( &manager, &UpdateManager::RemoveAnimation, &animation );
848 inline void AddPropertyNotificationMessage( UpdateManager& manager, OwnerPointer< PropertyNotification >& propertyNotification )
850 // Message has ownership of PropertyNotification while in transit from event -> update
851 typedef MessageValue1< UpdateManager, OwnerPointer< PropertyNotification > > LocalType;
853 // Reserve some memory inside the message queue
854 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
856 // Construct message in the message queue memory; note that delete should not be called on the return value
857 new (slot) LocalType( &manager, &UpdateManager::AddPropertyNotification, propertyNotification );
860 inline void RemovePropertyNotificationMessage( UpdateManager& manager, const PropertyNotification& constPropertyNotification )
862 // The scene-graph thread owns this object so it can safely edit it.
863 PropertyNotification& propertyNotification = const_cast< PropertyNotification& >( constPropertyNotification );
865 typedef MessageValue1< UpdateManager, PropertyNotification* > LocalType;
867 // Reserve some memory inside the message queue
868 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
870 // Construct message in the message queue memory; note that delete should not be called on the return value
871 new (slot) LocalType( &manager, &UpdateManager::RemovePropertyNotification, &propertyNotification );
874 inline void PropertyNotificationSetNotifyModeMessage( UpdateManager& manager,
875 const PropertyNotification* constPropertyNotification,
876 PropertyNotification::NotifyMode notifyMode )
878 // The scene-graph thread owns this object so it can safely edit it.
879 PropertyNotification* propertyNotification = const_cast< PropertyNotification* >( constPropertyNotification );
881 typedef MessageValue2< UpdateManager, PropertyNotification*, PropertyNotification::NotifyMode > LocalType;
883 // Reserve some memory inside the message queue
884 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
886 // Construct message in the message queue memory; note that delete should not be called on the return value
887 new (slot) LocalType( &manager, &UpdateManager::PropertyNotificationSetNotify, propertyNotification, notifyMode );
890 // The render thread can safely change the Shader
891 inline void AddShaderMessage( UpdateManager& manager, OwnerPointer< Shader >& shader )
893 typedef MessageValue1< UpdateManager, OwnerPointer< Shader > > LocalType;
895 // Reserve some memory inside the message queue
896 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
898 // Construct message in the message queue memory; note that delete should not be called on the return value
899 new (slot) LocalType( &manager, &UpdateManager::AddShader, shader );
902 // The render thread can safely change the Shader
903 inline void RemoveShaderMessage( UpdateManager& manager, Shader& shader )
905 typedef MessageValue1< UpdateManager, Shader* > LocalType;
907 // Reserve some memory inside the message queue
908 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
910 // Construct message in the message queue memory; note that delete should not be called on the return value
911 new (slot) LocalType( &manager, &UpdateManager::RemoveShader, &shader );
914 inline void SetShaderProgramMessage( UpdateManager& manager,
916 Internal::ShaderDataPtr shaderData,
917 bool modifiesGeometry )
919 typedef MessageValue3< UpdateManager, Shader*, Internal::ShaderDataPtr, bool > LocalType;
921 // Reserve some memory inside the message queue
922 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
924 // Construct message in the message queue memory; note that delete should not be called on the return value
925 new (slot) LocalType( &manager, &UpdateManager::SetShaderProgram, &shader, shaderData, modifiesGeometry );
928 inline void SetBackgroundColorMessage( UpdateManager& manager, const Vector4& color )
930 typedef MessageValue1< UpdateManager, Vector4 > LocalType;
932 // Reserve some memory inside the message queue
933 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
935 // Construct message in the message queue memory; note that delete should not be called on the return value
936 new (slot) LocalType( &manager, &UpdateManager::SetBackgroundColor, color );
939 inline void SetDefaultSurfaceRectMessage( UpdateManager& manager, const Rect<int>& rect )
941 typedef MessageValue1< UpdateManager, Rect<int> > LocalType;
943 // Reserve some memory inside the message queue
944 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
946 // Construct message in the message queue memory; note that delete should not be called on the return value
947 new (slot) LocalType( &manager, &UpdateManager::SetDefaultSurfaceRect, rect );
950 inline void KeepRenderingMessage( UpdateManager& manager, float durationSeconds )
952 typedef MessageValue1< UpdateManager, float > LocalType;
954 // Reserve some memory inside the message queue
955 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
957 // Construct message in the message queue memory; note that delete should not be called on the return value
958 new (slot) LocalType( &manager, &UpdateManager::KeepRendering, durationSeconds );
962 * Create a message for setting the depth of a layer
963 * @param[in] manager The update manager
964 * @param[in] layers list of layers
965 * @param[in] systemLevel True if the layers are added via the SystemOverlay API
967 inline void SetLayerDepthsMessage( UpdateManager& manager, const std::vector< Layer* >& layers, bool systemLevel )
969 typedef MessageValue2< UpdateManager, std::vector< Layer* >, bool > LocalType;
971 // Reserve some memory inside the message queue
972 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
974 // Construct message in the message queue memory; note that delete should not be called on the return value
975 new (slot) LocalType( &manager, &UpdateManager::SetLayerDepths, layers, systemLevel );
978 inline void AddRendererMessage( UpdateManager& manager, OwnerPointer< Renderer >& object )
980 typedef MessageValue1< UpdateManager, OwnerPointer< Renderer > > LocalType;
982 // Reserve some memory inside the message queue
983 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
984 // Construct message in the message queue memory; note that delete should not be called on the return value
985 new (slot) LocalType( &manager, &UpdateManager::AddRenderer, object );
988 inline void RemoveRendererMessage( UpdateManager& manager, Renderer& object )
990 typedef MessageValue1< UpdateManager, Renderer* > LocalType;
992 // Reserve some memory inside the message queue
993 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
994 // Construct message in the message queue memory; note that delete should not be called on the return value
995 new (slot) LocalType( &manager, &UpdateManager::RemoveRenderer, &object );
998 // The render thread can safely change the Shader
999 inline void AddTextureSetMessage( UpdateManager& manager, OwnerPointer< TextureSet >& textureSet )
1001 typedef MessageValue1< UpdateManager, OwnerPointer< TextureSet > > LocalType;
1003 // Reserve some memory inside the message queue
1004 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1006 // Construct message in the message queue memory; note that delete should not be called on the return value
1007 new (slot) LocalType( &manager, &UpdateManager::AddTextureSet, textureSet );
1010 // The render thread can safely change the Shader
1011 inline void RemoveTextureSetMessage( UpdateManager& manager, TextureSet& textureSet )
1013 typedef MessageValue1< UpdateManager, TextureSet* > LocalType;
1015 // Reserve some memory inside the message queue
1016 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1018 // Construct message in the message queue memory; note that delete should not be called on the return value
1019 new (slot) LocalType( &manager, &UpdateManager::RemoveTextureSet, &textureSet );
1022 inline void AddSamplerMessage( UpdateManager& manager, OwnerPointer< Render::Sampler >& sampler )
1024 // Message has ownership of Sampler while in transit from event -> update
1025 typedef MessageValue1< UpdateManager, OwnerPointer< Render::Sampler > > LocalType;
1027 // Reserve some memory inside the message queue
1028 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1030 // Construct message in the message queue memory; note that delete should not be called on the return value
1031 new (slot) LocalType( &manager, &UpdateManager::AddSampler, sampler );
1034 inline void RemoveSamplerMessage( UpdateManager& manager, Render::Sampler& sampler )
1036 typedef MessageValue1< UpdateManager, Render::Sampler* > LocalType;
1038 // Reserve some memory inside the message queue
1039 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1041 // Construct message in the message queue memory; note that delete should not be called on the return value
1042 new (slot) LocalType( &manager, &UpdateManager::RemoveSampler, &sampler );
1045 inline void SetFilterModeMessage( UpdateManager& manager, Render::Sampler& sampler, unsigned int minFilterMode, unsigned int magFilterMode )
1047 typedef MessageValue3< UpdateManager, Render::Sampler*, unsigned int, unsigned int > LocalType;
1049 // Reserve some memory inside the message queue
1050 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1052 // Construct message in the message queue memory; note that delete should not be called on the return value
1053 new (slot) LocalType( &manager, &UpdateManager::SetFilterMode, &sampler, minFilterMode, magFilterMode );
1056 inline void SetWrapModeMessage( UpdateManager& manager, Render::Sampler& sampler, unsigned int rWrapMode, unsigned int sWrapMode, unsigned int tWrapMode )
1058 typedef MessageValue4< UpdateManager, Render::Sampler*, unsigned int, unsigned int, unsigned int > LocalType;
1060 // Reserve some memory inside the message queue
1061 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1063 // Construct message in the message queue memory; note that delete should not be called on the return value
1064 new (slot) LocalType( &manager, &UpdateManager::SetWrapMode, &sampler, rWrapMode, sWrapMode, tWrapMode );
1067 inline void AddPropertyBuffer( UpdateManager& manager, OwnerPointer< Render::PropertyBuffer >& propertyBuffer )
1069 // Message has ownership of propertyBuffer while in transit from event -> update
1070 typedef MessageValue1< UpdateManager, OwnerPointer< Render::PropertyBuffer > > LocalType;
1072 // Reserve some memory inside the message queue
1073 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1075 // Construct message in the message queue memory; note that delete should not be called on the return value
1076 new (slot) LocalType( &manager, &UpdateManager::AddPropertyBuffer, propertyBuffer );
1079 inline void RemovePropertyBuffer( UpdateManager& manager, Render::PropertyBuffer& propertyBuffer )
1081 typedef MessageValue1< UpdateManager, Render::PropertyBuffer* > LocalType;
1083 // Reserve some memory inside the message queue
1084 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1086 // Construct message in the message queue memory; note that delete should not be called on the return value
1087 new (slot) LocalType( &manager, &UpdateManager::RemovePropertyBuffer, &propertyBuffer );
1090 inline void SetPropertyBufferFormat( UpdateManager& manager, Render::PropertyBuffer& propertyBuffer, OwnerPointer< Render::PropertyBuffer::Format>& format )
1092 // Message has ownership of PropertyBuffer::Format while in transit from event -> update
1093 typedef MessageValue2< UpdateManager, Render::PropertyBuffer*, OwnerPointer< Render::PropertyBuffer::Format> > LocalType;
1095 // Reserve some memory inside the message queue
1096 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1098 // Construct message in the message queue memory; note that delete should not be called on the return value
1099 new (slot) LocalType( &manager, &UpdateManager::SetPropertyBufferFormat, &propertyBuffer, format );
1102 inline void SetPropertyBufferData( UpdateManager& manager, Render::PropertyBuffer& propertyBuffer, OwnerPointer< Vector<char> >& data, size_t size )
1104 // Message has ownership of PropertyBuffer data while in transit from event -> update
1105 typedef MessageValue3< UpdateManager, Render::PropertyBuffer*, OwnerPointer< Vector<char> >, size_t > LocalType;
1107 // Reserve some memory inside the message queue
1108 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1110 // Construct message in the message queue memory; note that delete should not be called on the return value
1111 new (slot) LocalType( &manager, &UpdateManager::SetPropertyBufferData, &propertyBuffer, data, size );
1114 inline void AddGeometry( UpdateManager& manager, OwnerPointer< Render::Geometry >& geometry )
1116 // Message has ownership of Geometry while in transit from event -> update
1117 typedef MessageValue1< UpdateManager, OwnerPointer< Render::Geometry > > LocalType;
1119 // Reserve some memory inside the message queue
1120 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1122 // Construct message in the message queue memory; note that delete should not be called on the return value
1123 new (slot) LocalType( &manager, &UpdateManager::AddGeometry, geometry );
1126 inline void RemoveGeometry( UpdateManager& manager, Render::Geometry& geometry )
1128 typedef MessageValue1< UpdateManager, Render::Geometry* > LocalType;
1130 // Reserve some memory inside the message queue
1131 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1133 // Construct message in the message queue memory; note that delete should not be called on the return value
1134 new (slot) LocalType( &manager, &UpdateManager::RemoveGeometry, &geometry );
1137 inline void AttachVertexBufferMessage( UpdateManager& manager, Render::Geometry& geometry, const Render::PropertyBuffer& vertexBuffer )
1139 typedef MessageValue2< UpdateManager, Render::Geometry*, Render::PropertyBuffer* > LocalType;
1141 // Reserve some memory inside the message queue
1142 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1144 // Construct message in the message queue memory; note that delete should not be called on the return value
1145 new (slot) LocalType( &manager, &UpdateManager::AttachVertexBuffer, &geometry, const_cast<Render::PropertyBuffer*>(&vertexBuffer) );
1148 inline void RemoveVertexBufferMessage( UpdateManager& manager, Render::Geometry& geometry, const Render::PropertyBuffer& vertexBuffer )
1150 typedef MessageValue2< UpdateManager, Render::Geometry*, Render::PropertyBuffer* > LocalType;
1152 // Reserve some memory inside the message queue
1153 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1155 // Construct message in the message queue memory; note that delete should not be called on the return value
1156 new (slot) LocalType( &manager, &UpdateManager::RemoveVertexBuffer, &geometry, const_cast<Render::PropertyBuffer*>(&vertexBuffer) );
1159 // Custom message type for SetIndexBuffer() used to move data with Vector::Swap()
1160 template< typename T >
1161 class IndexBufferMessage : public MessageBase
1166 * Constructor which does a Vector::Swap()
1168 IndexBufferMessage( T* manager, Render::Geometry* geometry, Dali::Vector<unsigned short>& indices )
1170 mManager( manager ),
1171 mRenderGeometry( geometry )
1173 mIndices.Swap( indices );
1177 * Virtual destructor
1179 virtual ~IndexBufferMessage()
1184 * @copydoc MessageBase::Process
1186 virtual void Process( BufferIndex /*bufferIndex*/ )
1188 DALI_ASSERT_DEBUG( mManager && "Message does not have an object" );
1189 mManager->SetIndexBuffer( mRenderGeometry, mIndices );
1195 Render::Geometry* mRenderGeometry;
1196 Dali::Vector<unsigned short> mIndices;
1199 inline void SetIndexBufferMessage( UpdateManager& manager, Render::Geometry& geometry, Dali::Vector<unsigned short>& indices )
1201 typedef IndexBufferMessage< UpdateManager > LocalType;
1203 // Reserve some memory inside the message queue
1204 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1206 // Construct message in the message queue memory; note that delete should not be called on the return value
1207 new (slot) LocalType( &manager, &geometry, indices );
1210 inline void SetGeometryTypeMessage( UpdateManager& manager, Render::Geometry& geometry, unsigned int geometryType )
1212 typedef MessageValue2< UpdateManager, Render::Geometry*, unsigned int > LocalType;
1214 // Reserve some memory inside the message queue
1215 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1217 // Construct message in the message queue memory; note that delete should not be called on the return value
1218 new (slot) LocalType( &manager, &UpdateManager::SetGeometryType, &geometry, geometryType );
1221 inline void AddTexture( UpdateManager& manager, OwnerPointer< Render::Texture >& texture )
1223 // Message has ownership of Texture while in transit from event -> update
1224 typedef MessageValue1< UpdateManager, OwnerPointer< Render::Texture > > LocalType;
1226 // Reserve some memory inside the message queue
1227 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1229 // Construct message in the message queue memory; note that delete should not be called on the return value
1230 new (slot) LocalType( &manager, &UpdateManager::AddTexture, texture );
1233 inline void RemoveTexture( UpdateManager& manager, Render::Texture& texture )
1235 typedef MessageValue1< UpdateManager, Render::Texture* > LocalType;
1237 // Reserve some memory inside the message queue
1238 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1240 // Construct message in the message queue memory; note that delete should not be called on the return value
1241 new (slot) LocalType( &manager, &UpdateManager::RemoveTexture, &texture );
1244 inline void UploadTextureMessage( UpdateManager& manager, Render::Texture& texture, PixelDataPtr pixelData, const Texture::UploadParams& params )
1246 typedef MessageValue3< UpdateManager, Render::Texture*, PixelDataPtr, Texture::UploadParams > LocalType;
1248 // Reserve some memory inside the message queue
1249 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1251 // Construct message in the message queue memory; note that delete should not be called on the return value
1252 new (slot) LocalType( &manager, &UpdateManager::UploadTexture, &texture, pixelData, params );
1255 inline void GenerateMipmapsMessage( UpdateManager& manager, Render::Texture& texture )
1257 typedef MessageValue1< UpdateManager, Render::Texture* > LocalType;
1259 // Reserve some memory inside the message queue
1260 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1262 // Construct message in the message queue memory; note that delete should not be called on the return value
1263 new (slot) LocalType( &manager, &UpdateManager::GenerateMipmaps, &texture );
1267 inline void AddFrameBuffer( UpdateManager& manager, Render::FrameBuffer& frameBuffer )
1269 typedef MessageValue1< UpdateManager, Render::FrameBuffer* > LocalType;
1271 // Reserve some memory inside the message queue
1272 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1274 // Construct message in the message queue memory; note that delete should not be called on the return value
1275 new (slot) LocalType( &manager, &UpdateManager::AddFrameBuffer, &frameBuffer );
1278 inline void RemoveFrameBuffer( UpdateManager& manager, Render::FrameBuffer& frameBuffer )
1280 typedef MessageValue1< UpdateManager, Render::FrameBuffer* > LocalType;
1282 // Reserve some memory inside the message queue
1283 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1285 // Construct message in the message queue memory; note that delete should not be called on the return value
1286 new (slot) LocalType( &manager, &UpdateManager::RemoveFrameBuffer, &frameBuffer );
1289 inline void AttachColorTextureToFrameBuffer( UpdateManager& manager, Render::FrameBuffer& frameBuffer, Render::Texture* texture, unsigned int mipmapLevel, unsigned int layer )
1291 typedef MessageValue4< UpdateManager, Render::FrameBuffer*, Render::Texture*, unsigned int, unsigned int > LocalType;
1293 // Reserve some memory inside the message queue
1294 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1296 // Construct message in the message queue memory; note that delete should not be called on the return value
1297 new (slot) LocalType( &manager, &UpdateManager::AttachColorTextureToFrameBuffer, &frameBuffer, texture, mipmapLevel, layer );
1300 inline void SetDepthIndicesMessage( UpdateManager& manager, OwnerPointer< NodeDepths >& nodeDepths )
1302 typedef MessageValue1< UpdateManager, OwnerPointer< NodeDepths > > LocalType;
1304 // Reserve some memory inside the message queue
1305 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1307 // Construct message in the message queue memory; note that delete should not be called on the return value
1308 new (slot) LocalType( &manager, &UpdateManager::SetDepthIndices, nodeDepths );
1311 inline void AddResetterMessage( UpdateManager& manager, OwnerPointer<PropertyResetterBase> resetter )
1313 typedef MessageValue1< UpdateManager, OwnerPointer<PropertyResetterBase> > LocalType;
1315 // Reserve some memory inside the message queue
1316 unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
1318 // Construct message in the message queue memory; note that delete should not be called on the return value
1319 new (slot) LocalType( &manager, &UpdateManager::AddPropertyResetter, resetter );
1323 } // namespace SceneGraph
1325 } // namespace Internal
1329 #endif // DALI_INTERNAL_SCENE_GRAPH_UPDATE_MANAGER_H