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
[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
46bb14c
..
d23419c
--- 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.
@@
-39,10
+39,11
@@
SceneGraph::Layer* Layer::New()
}
Layer::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 )
@@
-63,6
+64,7
@@
void Layer::SetSortFunction( Dali::Layer::SortFunctionType function )
{
if( mSortFunction != function )
{
{
if( mSortFunction != function )
{
+ SetPropertyDirty( true );
// is a custom sort function used
if( function != Internal::Layer::ZValue )
{
// is a custom sort function used
if( function != Internal::Layer::ZValue )
{
@@
-83,21
+85,25
@@
void Layer::SetSortFunction( Dali::Layer::SortFunctionType function )
void Layer::SetClipping(bool enabled)
{
mIsClipping = enabled;
void Layer::SetClipping(bool enabled)
{
mIsClipping = enabled;
+ SetPropertyDirty( true );
}
void Layer::SetClippingBox(const Dali::ClippingBox& box)
{
mClippingBox.Set(box.x, box.y, box.width, box.height);
}
void Layer::SetClippingBox(const Dali::ClippingBox& box)
{
mClippingBox.Set(box.x, box.y, box.width, box.height);
+ SetPropertyDirty( true );
}
void Layer::SetBehavior( Dali::Layer::Behavior behavior )
{
mBehavior = behavior;
}
void Layer::SetBehavior( Dali::Layer::Behavior behavior )
{
mBehavior = behavior;
+ SetPropertyDirty( true );
}
void Layer::SetDepthTestDisabled( bool disable )
{
mDepthTestDisabled = disable;
}
void Layer::SetDepthTestDisabled( bool disable )
{
mDepthTestDisabled = disable;
+ SetPropertyDirty( true );
}
bool Layer::IsDepthTestDisabled() const
}
bool Layer::IsDepthTestDisabled() const
@@
-113,15
+119,6
@@
void Layer::ClearRenderables()
} // namespace SceneGraph
} // namespace SceneGraph
-template <>
-void OwnerPointer<Dali::Internal::SceneGraph::Layer>::Reset()
-{
- if( mObject != NULL )
- {
- Dali::Internal::SceneGraph::Node::Delete( mObject );
- mObject = NULL;
- }
-}
} // namespace Internal
} // namespace Dali
} // namespace Internal
} // namespace Dali