X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fmanager%2Fupdate-algorithms.h;h=eeeb09eff0c5e3c58a76b3b0b026215dfe24260b;hb=321f65b9d42abf0c7c69b32105c7d7239116b68b;hp=62f24119027f9558b8eb1b1b295cb0fb938d617b;hpb=b30bdab12215357d26d8b3aca47d225419eae5fd;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/manager/update-algorithms.h b/dali/internal/update/manager/update-algorithms.h index 62f2411..eeeb09e 100644 --- a/dali/internal/update/manager/update-algorithms.h +++ b/dali/internal/update/manager/update-algorithms.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_SCENE_GRAPH_UPDATE_ALGORITHMS_H__ -#define __DALI_INTERNAL_SCENE_GRAPH_UPDATE_ALGORITHMS_H__ +#ifndef DALI_INTERNAL_SCENE_GRAPH_UPDATE_ALGORITHMS_H +#define DALI_INTERNAL_SCENE_GRAPH_UPDATE_ALGORITHMS_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,18 +20,15 @@ // INTERNAL INCLUDES #include +#include namespace Dali { - namespace Internal { - namespace SceneGraph { - class Layer; -class Node; class PropertyOwner; class RenderQueue; @@ -40,7 +37,7 @@ class RenderQueue; * @param[in] propertyOwner The PropertyOwner to constrain * @param[in] updateBufferIndex The current update buffer index. */ -void ConstrainPropertyOwner( PropertyOwner& propertyOwner, BufferIndex updateBufferIndex ); +void ConstrainPropertyOwner(PropertyOwner& propertyOwner, BufferIndex updateBufferIndex); /** * Update a tree of nodes @@ -50,9 +47,17 @@ void ConstrainPropertyOwner( PropertyOwner& propertyOwner, BufferIndex updateBuf * @param[in] renderQueue Used to query messages for the next Render. * @return The cumulative (ORed) dirty flags for the updated nodes */ -int UpdateNodeTree( Layer& rootNode, - BufferIndex updateBufferIndex, - RenderQueue& renderQueue ); +NodePropertyFlags UpdateNodeTree(Layer& rootNode, + BufferIndex updateBufferIndex, + RenderQueue& renderQueue); +/** + * This updates all the sub-layer's reusability flags without affecting + * the root layer. + * + * @param layer The root layer + * @param updateBufferIndex The current buffer index + */ +void UpdateLayerTree(Layer& layer, BufferIndex updateBufferIndex); } // namespace SceneGraph @@ -60,5 +65,4 @@ int UpdateNodeTree( Layer& rootNode, } // namespace Dali -#endif // __DALI_INTERNAL_SCENE_GRAPH_UPDATE_ALGORITHMS_H__ - +#endif // DALI_INTERNAL_SCENE_GRAPH_UPDATE_ALGORITHMS_H