X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Fmanager%2Fupdate-algorithms.cpp;h=ead715418302a9e1f2461a980a109dc4e961dc92;hb=c99b916b9708aa161c5d736964d5a8eadf235636;hp=6f1fb4d417e917f9eca560566d1e6739e2f74ede;hpb=9399f25c2385050a3477900e76208a61bb124e07;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/manager/update-algorithms.cpp b/dali/internal/update/manager/update-algorithms.cpp index 6f1fb4d..ead7154 100644 --- a/dali/internal/update/manager/update-algorithms.cpp +++ b/dali/internal/update/manager/update-algorithms.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -55,7 +54,6 @@ Debug::Filter* gUpdateFilter = Debug::Filter::New(Debug::Concise, false, "LOG_UP * Constrain the local properties of the PropertyOwner. * @param propertyOwner to constrain * @param updateBufferIndex buffer index to use - * @return The number of constraints that are still being applied */ void ConstrainPropertyOwner( PropertyOwner& propertyOwner, BufferIndex updateBufferIndex ) { @@ -106,12 +104,11 @@ inline void UpdateNodeOpacity( Node& node, int nodeDirtyFlags, BufferIndex updat inline int UpdateNodes( Node& node, int parentFlags, BufferIndex updateBufferIndex, - ResourceManager& resourceManager, RenderQueue& renderQueue, Layer& currentLayer, int inheritedDrawMode ) { - //Apply constraints to the node + // Apply constraints to the node ConstrainPropertyOwner( node, updateBufferIndex ); // Short-circuit for invisible nodes @@ -150,7 +147,7 @@ inline int UpdateNodes( Node& node, UpdateNodeOpacity( node, nodeDirtyFlags, updateBufferIndex ); - // Setting STENCIL will override OVERLAY_2D, if that would otherwise have been inherited. + // Draw mode inheritance is treated as or-ing the modes together (as they are a bit-mask). inheritedDrawMode |= node.GetDrawMode(); node.PrepareRender( updateBufferIndex ); @@ -171,7 +168,6 @@ inline int UpdateNodes( Node& node, cumulativeDirtyFlags |=UpdateNodes( child, nodeDirtyFlags, updateBufferIndex, - resourceManager, renderQueue, *layer, inheritedDrawMode ); @@ -185,7 +181,6 @@ inline int UpdateNodes( Node& node, */ int UpdateNodeTree( Layer& rootNode, BufferIndex updateBufferIndex, - ResourceManager& resourceManager, RenderQueue& renderQueue ) { DALI_ASSERT_DEBUG( rootNode.IsRoot() ); @@ -221,7 +216,6 @@ int UpdateNodeTree( Layer& rootNode, cumulativeDirtyFlags |= UpdateNodes( child, nodeDirtyFlags, updateBufferIndex, - resourceManager, renderQueue, rootNode, drawMode );