projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "[Tizen] Implement partial update"
[platform/core/uifw/dali-core.git]
/
dali
/
internal
/
update
/
nodes
/
scene-graph-layer.cpp
diff --git
a/dali/internal/update/nodes/scene-graph-layer.cpp
b/dali/internal/update/nodes/scene-graph-layer.cpp
old mode 100644
(file)
new mode 100755
(executable)
index
573ccee
..
8f9ff00
--- a/
dali/internal/update/nodes/scene-graph-layer.cpp
+++ b/
dali/internal/update/nodes/scene-graph-layer.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
6
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-33,18
+33,24
@@
namespace SceneGraph
SceneGraph::Layer* Layer::New()
{
SceneGraph::Layer* Layer::New()
{
+ // Layers are currently heap allocated, unlike Nodes which are in a memory pool
+ // However Node::Delete( layer ) will correctly delete a layer / node depending on type
return new Layer();
}
Layer::Layer()
return new Layer();
}
Layer::Layer()
-: mSortFunction( Internal::Layer::ZValue ),
+: Node(),
+ mSortFunction( Internal::Layer::ZValue ),
mClippingBox( 0,0,0,0 ),
mLastCamera( NULL ),
mClippingBox( 0,0,0,0 ),
mLastCamera( NULL ),
- mBehavior( Dali::Layer::LAYER_
2D
),
+ mBehavior( Dali::Layer::LAYER_
UI
),
mIsClipping( false ),
mDepthTestDisabled( true ),
mIsDefaultSortFunction( true )
{
mIsClipping( false ),
mDepthTestDisabled( true ),
mIsDefaultSortFunction( true )
{
+ // set a flag the node to say this is a layer
+ mIsLayer = true;
+
// layer starts off dirty
mAllChildTransformsClean[ 0 ] = false;
mAllChildTransformsClean[ 1 ] = false;
// layer starts off dirty
mAllChildTransformsClean[ 0 ] = false;
mAllChildTransformsClean[ 1 ] = false;