platform/core/uifw/dali-core.git
8 years agoRemove some dead and non-thread safe internal uniforms 45/49545/1
Kimmo Hoikka [Wed, 14 Oct 2015 15:38:22 +0000 (16:38 +0100)]
Remove some dead and non-thread safe internal uniforms

Change-Id: I70635a012f67b75d22a411ac06d7b34f27be4659

8 years agoRemove Sampler scene object 80/49080/19
Ferran Sole [Tue, 6 Oct 2015 08:02:05 +0000 (09:02 +0100)]
Remove Sampler scene object

* Removed sampler scene object
* Created render thread sampler
* Separated samplers (specify sampling mode) from textures
* Samplers can be reused by multiple textures
* Added support for texture wrapping modes

Change-Id: I530cd6346ae828dabdeeaa2874fa9c4229b4601a

8 years agoMerge "Avoid constraint suicide during ObjectDestroyed callbacks" into devel/master
Kimmo Hoikka [Tue, 13 Oct 2015 09:34:03 +0000 (02:34 -0700)]
Merge "Avoid constraint suicide during ObjectDestroyed callbacks" into devel/master

8 years agoAvoid constraint suicide during ObjectDestroyed callbacks 29/49329/4
Paul Wisbey [Mon, 12 Oct 2015 15:38:49 +0000 (16:38 +0100)]
Avoid constraint suicide during ObjectDestroyed callbacks

Valgrind reports this when the gallery grid layout terminates:

==5351== Invalid write of size 4
==5351==    at 0x4F8FF32: Dali::Internal::ConstraintBase::ObjectDestroyed(Dali::Internal::Object&) (constraint-base.cpp:218)
==5351==    by 0x4F962B9: Dali::Internal::Object::~Object() (object-impl.cpp:1206)
==5351==    by 0x4FA810B: Dali::Internal::CustomObject::~CustomObject() (custom-object-internal.cpp:110)

The issue is that constraints commit suicide during ObjectDestroyed callbacks,
with a (dangerous) call to mTargetObject->RemoveConstraint.

Change-Id: I8da276fda1b4dfd987a8bd699ed3d908994b361e

8 years agoMoved INITIAL_HASH_VALUE from hash.cpp to hash.h 28/49328/1
Chu Hoang [Mon, 12 Oct 2015 14:41:15 +0000 (15:41 +0100)]
Moved INITIAL_HASH_VALUE from hash.cpp to hash.h

Change-Id: I474044a9e2ed7437d1792fc97327372e26a9dbc3

8 years agoMerge "Moved OwnerContainer from internal to devel-api." into devel/master
Kimmo Hoikka [Fri, 9 Oct 2015 17:17:31 +0000 (10:17 -0700)]
Merge "Moved OwnerContainer from internal to devel-api." into devel/master

8 years agoMerge "Changed WeakHandle::GetHandle() method to use a DownCast<T> instead of a reint...
Kimmo Hoikka [Fri, 9 Oct 2015 15:31:22 +0000 (08:31 -0700)]
Merge "Changed WeakHandle::GetHandle() method to use a DownCast<T> instead of a reinterpret_cast." into devel/master

8 years agoChanged WeakHandle::GetHandle() method to use a DownCast<T> instead of a reinterpret_... 42/49242/2
Chu Hoang [Fri, 9 Oct 2015 12:47:44 +0000 (13:47 +0100)]
Changed WeakHandle::GetHandle() method to use a DownCast<T> instead of a reinterpret_cast.

This allows WeakHandle::GetHandle to be usable by non Actor/customActor derived classes.

Change-Id: I4a2f2fb143fe6d50e7555846c560ffe4aabc8bc0

8 years agoMoved OwnerContainer from internal to devel-api. 37/49237/1
Chu Hoang [Fri, 9 Oct 2015 11:04:48 +0000 (12:04 +0100)]
Moved OwnerContainer from internal to devel-api.

Change-Id: I9d47ec9e11e2f44d884a758e79f402711018ed3e

8 years agoDALi Version 1.1.6 29/49229/1 dali_1.1.6
Tom Robinson [Fri, 9 Oct 2015 09:48:14 +0000 (10:48 +0100)]
DALi Version 1.1.6

Change-Id: Id025f65d0fd6e424345a43e5ab92132f7784c0ff

8 years agoMerge "Revert "Fix thread contention issues in messages and pan gestures."" into...
Adeel Kazmi [Thu, 8 Oct 2015 16:46:48 +0000 (09:46 -0700)]
Merge "Revert "Fix thread contention issues in messages and pan gestures."" into devel/master

8 years agoRevert "Fix thread contention issues in messages and pan gestures." 10/49210/2
Kimmo Hoikka [Thu, 8 Oct 2015 12:26:52 +0000 (05:26 -0700)]
Revert "Fix thread contention issues in messages and pan gestures."

This reverts commit 8be6860f402e22fa57088a25993e8340a85e812d.

Change-Id: I85d4f5ed09fff79fd790222ff41f80cb6952ea94

8 years agoCache size uniform as its often same for many renderers now as we are scaling geometry 09/49209/1
Kimmo Hoikka [Thu, 8 Oct 2015 12:21:43 +0000 (13:21 +0100)]
Cache size uniform as its often same for many renderers now as we are scaling geometry

Change-Id: Ic236e62c73b4c0db2c7ad2ab3fc13b4a957eaeaa

8 years agoChanged SceneGraph::Renderer::mOnStage flag to instead count the number of connection... 02/49102/2
Chu Hoang [Tue, 6 Oct 2015 11:09:12 +0000 (12:09 +0100)]
Changed SceneGraph::Renderer::mOnStage flag to instead count the number of connections/disconnects and only connect/disconnect once.

This fixes a bug where multiple actors share a renderer causes multiple connections/discconections.

Change-Id: I75a14ac350fb46e72da7fcaa85ba9ec8324d9e62

8 years ago(Geometry) Allow to set index buffer when using triangle strip/fan 90/48990/3
Xiangyin Ma [Fri, 2 Oct 2015 14:15:19 +0000 (15:15 +0100)]
(Geometry) Allow to set index buffer when using triangle strip/fan

Change-Id: I969530bca9df4bc22a474f26cd3d8f53e8513f26

8 years agoDALi Version 1.1.5 73/48973/1 dali_1.1.5
Chu Hoang [Fri, 2 Oct 2015 09:38:21 +0000 (10:38 +0100)]
DALi Version 1.1.5

Change-Id: I2fdb0e01c080846981241d2683b63f142da426bd

8 years agoChanged SceneGraph::CompareItems and CompareItems3D to compare the render items based... 14/48914/2
Chu Hoang [Thu, 1 Oct 2015 11:35:24 +0000 (12:35 +0100)]
Changed SceneGraph::CompareItems and CompareItems3D to compare the render items based on textureId instead of material.

This is to reduce the number of glBindTexture calls.

Change-Id: Iad24b18c5a42a53a85cdcf9522c5de71e3bf44a2

8 years agoRemoving GetDefaultFontDescription and libXML from Platform Abstraction 59/48759/4
Agnelo Vaz [Mon, 28 Sep 2015 16:32:24 +0000 (17:32 +0100)]
Removing GetDefaultFontDescription and libXML from Platform Abstraction

* Font Client now provides this functionality
* Parsing of XML file no longer needed so libXML library dependancy removed

Change-Id: Id3de780a5c813008528efd4eade6ed83e226623a
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
8 years agoRearrange doxygen tags for recently deprecated or new APIs 56/48756/1
Adeel Kazmi [Mon, 28 Sep 2015 15:15:13 +0000 (16:15 +0100)]
Rearrange doxygen tags for recently deprecated or new APIs

Change-Id: Ib75a37dd4036dc6997f0f3f2a91fc6c34d66658e

8 years ago(Docs) Adding doxygen tag order to coding style 55/48755/3
Adeel Kazmi [Mon, 28 Sep 2015 12:47:21 +0000 (13:47 +0100)]
(Docs) Adding doxygen tag order to coding style

Change-Id: I0d3f2637b5d9e0d919f86c1f2665a34782c17b4c

8 years agoMerge "Allow multiple renderers per Actor and sharing renderers between actors" into...
Kimmo Hoikka [Fri, 25 Sep 2015 08:42:42 +0000 (01:42 -0700)]
Merge "Allow multiple renderers per Actor and sharing renderers between actors" into devel/master

8 years agoDALi Version 1.1.4 11/48711/1 dali_1.1.4
Adeel Kazmi [Fri, 25 Sep 2015 07:45:40 +0000 (08:45 +0100)]
DALi Version 1.1.4

Change-Id: Ie3c75c8886fdce0f5edf3d4c527db572fa0d6677

8 years agoMerge "Remove the actor from exclusive list in RenderTaskList when the actor is destr...
HyunJu Shin [Fri, 25 Sep 2015 01:52:16 +0000 (18:52 -0700)]
Merge "Remove the actor from exclusive list in RenderTaskList when the actor is destroyed" into devel/master

8 years agoModify doxygen group names 52/48652/2
Yoonsang Lee [Thu, 24 Sep 2015 07:46:33 +0000 (16:46 +0900)]
Modify doxygen group names

- "-" in group names causes javascript errors when used in doxygen
1.7.6.1 with GENERATE_TREEVIEW option - by which Tizen API reference
is generated (not sure for later version)
- It makes DALi items in the tree view cannot be opened.
- Replace all "-" to "_" in doxygen group names to solve the problem.

Change-Id: If61d3da158c2c3d90fe1c67fbbb114767f37e698

8 years agoMerge "Marked new API's since 1.1.4" into devel/master
Adeel Kazmi [Thu, 24 Sep 2015 13:10:18 +0000 (06:10 -0700)]
Merge "Marked new API's since 1.1.4" into devel/master

8 years agoMarked new API's since 1.1.4 10/48610/3
Lee Morgan [Wed, 23 Sep 2015 15:04:16 +0000 (16:04 +0100)]
Marked new API's since 1.1.4

Change-Id: I36ed0f90917a19ed967948af2ae160657c02a227

8 years agoAllow multiple renderers per Actor and sharing renderers between actors 70/47770/25
Ferran Sole [Tue, 8 Sep 2015 14:37:30 +0000 (15:37 +0100)]
Allow multiple renderers per Actor and sharing renderers between actors

-Separate Renderers from NodeAttachments
-Actor has references to Renderer handles
-Node has references to SceneGraph renderers
-UpdateManager owns SceneGraph renderers
-RenderManager owns render thread renderers
-Moved render thread renderers to Render namespace
-Added support for triange strips and triangle fans

Change-Id: I854f92821b52098b59d639542b0eb1c01572c69b

8 years agoMerge "Remove dead code: BitmapExternal; not been used for a while, not even included...
Kimmo Hoikka [Thu, 24 Sep 2015 09:19:48 +0000 (02:19 -0700)]
Merge "Remove dead code: BitmapExternal; not been used for a while, not even included in the build" into devel/master

8 years agoRemove the actor from exclusive list in RenderTaskList when the actor is destroyed 75/48575/2
Heeyong Song [Wed, 23 Sep 2015 06:23:56 +0000 (15:23 +0900)]
Remove the actor from exclusive list in RenderTaskList when the actor is destroyed

Change-Id: Id8030de0b865d5670372f3e6d992ec8c9ba1d1cb

8 years agoRemove dead code: BitmapExternal; not been used for a while, not even included in... 13/48613/1
Kimmo Hoikka [Wed, 23 Sep 2015 16:27:07 +0000 (17:27 +0100)]
Remove dead code: BitmapExternal; not been used for a while, not even included in the build

Change-Id: I9e47e8ef7d14ee97e4aa5d037439cba0e24c0e49

8 years agoChanged NinePatchImage to always load images without any filtering. 09/48609/1
Chu Hoang [Wed, 23 Sep 2015 15:04:30 +0000 (16:04 +0100)]
Changed NinePatchImage to always load images without any filtering.

This is so that the stretch borders metadata is not filtered and become incorrect.

Change-Id: I3cd4be5c8511e39938a159de5431ab2ef88c015d

8 years agoMerge "Changed NinePatchImage to support parsing of n-patches." into devel/master
Adeel Kazmi [Wed, 23 Sep 2015 09:24:43 +0000 (02:24 -0700)]
Merge "Changed NinePatchImage to support parsing of n-patches." into devel/master

8 years agoMerged NativeFrameBufferTexture into FrameBufferTexture 84/48184/4
Paul Wisbey [Tue, 15 Sep 2015 17:46:18 +0000 (18:46 +0100)]
Merged NativeFrameBufferTexture into FrameBufferTexture

Change-Id: I5b4b3a7b811bb56a8fb6ccee9ca54478a68f4eee

8 years agoChanged NinePatchImage to support parsing of n-patches. 49/48449/5
Chu Hoang [Mon, 21 Sep 2015 13:44:53 +0000 (14:44 +0100)]
Changed NinePatchImage to support parsing of n-patches.

Change-Id: Id05ea194408730460b4bd62571b1fd2f5ec814e2

8 years agoAdded version when deprecated to the documentation for ShaderEffect 09/48409/2
Adeel Kazmi [Mon, 21 Sep 2015 10:28:05 +0000 (11:28 +0100)]
Added version when deprecated to the documentation for ShaderEffect

Change-Id: I4266f704d1e394e8119b7a8b6abf6787cb4f47ac

8 years agoDALi Version 1.1.3 49/48349/1 dali_1.1.3
Xiangyin Ma [Fri, 18 Sep 2015 10:02:54 +0000 (11:02 +0100)]
DALi Version 1.1.3

Change-Id: Id93f8ab3376daee874438e7a3361b88d54475651

8 years agoDeprecated load and resource policies as they dont work and cause more harm than... 72/48172/3
Kimmo Hoikka [Tue, 15 Sep 2015 13:12:21 +0000 (14:12 +0100)]
Deprecated load and resource policies as they dont work and cause more harm than benefits

Change-Id: I7927a21a8d35a27a38e620a1a0c88f8b227eeafb

8 years agoMerge "Added GetUniformName to Sampler." into devel/master
Kimmo Hoikka [Tue, 15 Sep 2015 15:21:37 +0000 (08:21 -0700)]
Merge "Added GetUniformName to Sampler." into devel/master

8 years agoMerge "Fixed Material::RemoveSampler not calling SceneGraph::RemoveSamplerMessage...
Kimmo Hoikka [Tue, 15 Sep 2015 15:21:11 +0000 (08:21 -0700)]
Merge "Fixed Material::RemoveSampler not calling SceneGraph::RemoveSamplerMessage to match Material::AddSampler." into devel/master

8 years agoAdded GetUniformName to Sampler. 62/48162/2
Chu Hoang [Mon, 14 Sep 2015 15:20:50 +0000 (16:20 +0100)]
Added GetUniformName to Sampler.

Change-Id: I962305f3cdf5b19ac5d2d1c23186c3204057be6e

8 years agoFixed Material::RemoveSampler not calling SceneGraph::RemoveSamplerMessage to match... 41/48041/4
Chu Hoang [Fri, 11 Sep 2015 10:40:26 +0000 (11:40 +0100)]
Fixed Material::RemoveSampler not calling SceneGraph::RemoveSamplerMessage to match Material::AddSampler.

Change-Id: I2614bcb803d587a8e76486f00b9f2ac49fbb9695

8 years agoConditionalWait moved to Core & add check for how many locks we're keeping 00/48000/4
Adeel Kazmi [Thu, 10 Sep 2015 08:50:46 +0000 (09:50 +0100)]
ConditionalWait moved to Core & add check for how many locks we're keeping

Option can be enabled via --enable-lock-backtrace which will show the backtrace for all locks
whenever more than 1 is held on a given thread.

Change-Id: Ib4b51f1167371922e57cee0e68909ac6bd83377f

8 years agoDALi Version 1.1.2 60/47960/1 dali_1.1.2
Richard Huang [Thu, 10 Sep 2015 10:04:56 +0000 (11:04 +0100)]
DALi Version 1.1.2

Change-Id: Ifb617c7e2266e59fd117102e0e7ea70b2b520bf9

8 years agoMerge "Stability/Performance for update buffer index" into devel/master
Adeel Kazmi [Wed, 9 Sep 2015 14:31:53 +0000 (07:31 -0700)]
Merge "Stability/Performance for update buffer index" into devel/master

8 years agoMerge "BufferImage mirrors an external Pixel Buffer on creation." into devel/master
Kimmo Hoikka [Wed, 9 Sep 2015 14:24:14 +0000 (07:24 -0700)]
Merge "BufferImage mirrors an external Pixel Buffer on creation." into devel/master

8 years agoStability/Performance for update buffer index 72/47872/2
Kimmo Hoikka [Wed, 9 Sep 2015 12:10:28 +0000 (13:10 +0100)]
Stability/Performance for update buffer index

- use the same update buffer index rather than call getter function multiple times per update
- swap index as the last thing of update

Change-Id: I8507bfed16600d0b14eabf4fd052304cc0443364

8 years agoFixed Helgrind issue with SceneGraph::Animator creation 44/47744/3
Paul Wisbey [Tue, 8 Sep 2015 10:12:28 +0000 (11:12 +0100)]
Fixed Helgrind issue with SceneGraph::Animator creation

Change-Id: Ieabaf8f2c7a607cdbfeea448d03ef690174642ad

8 years agoBufferImage mirrors an external Pixel Buffer on creation. 10/44910/21
Richard Underhill [Tue, 8 Sep 2015 09:10:07 +0000 (10:10 +0100)]
BufferImage mirrors an external Pixel Buffer on creation.

BufferImage now will maintain its own internal copy of a buffer
and will not own any external buffer.

BufferImage will Update() from the external buffer and it is
the application's responsibility to not destroy that if an
Update() is required.

If there is no future Update() after the BufferImage is created
then the external buffer can be safely destroyed.

Change-Id: Idd1224a7a5d2d022455018ec23b98e8b734abe31
Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
8 years agoScenGraph::ConstraintBase does not need to inherit from PropertyOwner 30/47630/1
Adeel Kazmi [Mon, 7 Sep 2015 08:36:30 +0000 (09:36 +0100)]
ScenGraph::ConstraintBase does not need to inherit from PropertyOwner

Change-Id: I37d3842a082c0eb824f8626f9d2992711f0ecea1

8 years agoFix thread contention issues in messages and pan gestures. 60/47560/1
Richard Underhill [Fri, 4 Sep 2015 12:34:12 +0000 (13:34 +0100)]
Fix thread contention issues in messages and pan gestures.

Change-Id: I21db78ce7a8504dfc9eb2241330ab51e8007d97f
Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
8 years agoMerge "Prevents an invalid texture cache being interrogated for a texture. This ...
Adeel Kazmi [Fri, 4 Sep 2015 12:07:09 +0000 (05:07 -0700)]
Merge "Prevents an invalid texture cache being interrogated for a texture. This 'fixes' the crash reported in gallery. An investigation of the root cause is underway." into devel/master

8 years agoMerge "Doxygen grouping" into devel/master
Adeel Kazmi [Fri, 4 Sep 2015 10:04:34 +0000 (03:04 -0700)]
Merge "Doxygen grouping" into devel/master

8 years agoPrevents an invalid texture cache being interrogated for a texture. 54/47354/1
Richard Underhill [Wed, 2 Sep 2015 12:34:47 +0000 (13:34 +0100)]
Prevents an invalid texture cache being interrogated for a texture.
This 'fixes' the crash reported in gallery.
An investigation of the root cause is underway.

Change-Id: I30f48e33148a2399f23e81d71749c0bad6335919
Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
8 years agoDoxygen grouping 35/45135/5
Yoonsang Lee [Thu, 23 Jul 2015 05:38:18 +0000 (14:38 +0900)]
Doxygen grouping

- Grouping using @defgroup, @ingroup, @addtogroup
- Results are shown in the "Modules" tab of the generated doxygen html
- Grouping doxygen comments are in doc/xxx_doc.h
- Install doc/xxx_doc.h as well when conducting 'make install'

Change-Id: I46830ecf57a4ad842a6cd5cb63a98968f0a23dda

8 years agoMerge changes I02677edb,If59805d2 into devel/master
Adeel Kazmi [Tue, 1 Sep 2015 13:50:08 +0000 (06:50 -0700)]
Merge changes I02677edb,If59805d2 into devel/master

* changes:
  Fix VD prevent issues
  Fix prevent issues

8 years agoFix VD prevent issues 26/46826/3
taeyoon [Wed, 26 Aug 2015 07:19:49 +0000 (16:19 +0900)]
Fix VD prevent issues

 - Add copy constructor & assignment operator (undefined, private member)
 - Add KeyFrameBaseSpec<V>& operator=(...)

Change-Id: I02677edba93b122fe59ad3d0e9ee2a4155d5b8fb

8 years agoFix prevent issues 25/46825/4
taeyoon [Tue, 25 Aug 2015 09:45:28 +0000 (18:45 +0900)]
Fix prevent issues

 - Handling NULL by if()

 - 451521, 451524, 451534, 453410, 453417
Change-Id: If59805d26be51c63e0b65d19d9f639f3128fa672

8 years agoFix for Valgrind reporting loss from QuramBitmapFactory in MCD. 78/46378/3
Richard Underhill [Wed, 19 Aug 2015 15:38:18 +0000 (16:38 +0100)]
Fix for Valgrind reporting loss from QuramBitmapFactory in MCD.

There is a delete[]/free mismatch changed Dali to use malloc/free to
help with third party libraries.

Change-Id: Ib3fbe62f9b00cea5062b44cf1169de1f6dda3bf0
Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
8 years agoMerge "Fix VD prevent issues - DIVIDE_BY_ZERO" into devel/master
Adeel Kazmi [Fri, 28 Aug 2015 16:58:47 +0000 (09:58 -0700)]
Merge "Fix VD prevent issues - DIVIDE_BY_ZERO" into devel/master

8 years agoMerge "Basic pan-gesture resampling for when prediction is off" into devel/master
Adeel Kazmi [Fri, 28 Aug 2015 16:47:13 +0000 (09:47 -0700)]
Merge "Basic pan-gesture resampling for when prediction is off" into devel/master

8 years agoMerge "Removed default in AnimatorBase::ApplyAlphaFunction switch statement to ensure...
Kimmo Hoikka [Fri, 28 Aug 2015 14:29:49 +0000 (07:29 -0700)]
Merge "Removed default in AnimatorBase::ApplyAlphaFunction switch statement to ensure that compiler will warn if any new built in alpha functions aren't handled." into devel/master

8 years agoBasic pan-gesture resampling for when prediction is off 86/46986/2
Tom Robinson [Tue, 25 Aug 2015 17:21:26 +0000 (18:21 +0100)]
Basic pan-gesture resampling for when prediction is off

Change-Id: Ib75998b9051ac495870dc6cf6333b1536fe42c03
Signed-off-by: Tom Robinson <tom.robinson@samsung.com>
UTC pan-gesture fix

Change-Id: I24728b70c44d1f11798ee9fd7230c0987b8b686f
Signed-off-by: Tom Robinson <tom.robinson@samsung.com>
8 years agoRemoved default in AnimatorBase::ApplyAlphaFunction switch statement to ensure that... 35/47035/1
Chu Hoang [Wed, 26 Aug 2015 16:17:39 +0000 (17:17 +0100)]
Removed default in AnimatorBase::ApplyAlphaFunction switch statement to ensure that compiler will warn if any new built in alpha functions aren't handled.

Change-Id: I43682ce8b37829b00c277b4d274a1eff9d63517e

8 years agoMerge "Fixed a potential memory corruption due to update and render potentially using...
Kimmo Hoikka [Wed, 26 Aug 2015 11:39:24 +0000 (04:39 -0700)]
Merge "Fixed a potential memory corruption due to update and render potentially using the same container simultaneously" into devel/master

8 years agoDALi Version 1.1.1 17/46817/1 dali_1.1.1
Lee Morgan [Wed, 26 Aug 2015 10:14:24 +0000 (11:14 +0100)]
DALi Version 1.1.1

Change-Id: Ic0a5ee8724f8a8102f5a12038ba77021d57c809d

8 years agoFix VD prevent issues - DIVIDE_BY_ZERO 01/46801/1
Heeyong Song [Wed, 26 Aug 2015 07:53:01 +0000 (16:53 +0900)]
Fix VD prevent issues - DIVIDE_BY_ZERO

Change-Id: Iceb219087a98082fa36e40a4f1701b17c7105c57

8 years agoFixed a potential memory corruption due to update and render potentially using the... 53/46753/3
Kimmo Hoikka [Tue, 25 Aug 2015 14:31:46 +0000 (15:31 +0100)]
Fixed a potential memory corruption due to update and render potentially using the same container simultaneously

Fixed by not using double buffering with index but having two separate containers

==5511== ----------------------------------------------------------------
==5511== Possible data race during read of size 4 at 0x14ECD29C by thread #4
==5511== Locks held: none
==5511==    at 0x55ADFB1: Dali::Internal::SceneGraph::UpdateManager::SaveBinary(Dali::IntrusivePtr<Dali::Internal::ShaderData>) (update-manager.cpp:632)
==5511==    by 0x5599DF4: Dali::Internal::ProgramController::StoreBinary(Dali::IntrusivePtr<Dali::Internal::ShaderData>) (program-controller.cpp:151)
==5511==    by 0x5598CFD: Dali::Internal::Program::Load() (program.cpp:559)
==5511==    by 0x5598DB4: Dali::Internal::Program::Use() (program.cpp:135)
==5511==    by 0x559799C: Dali::Internal::SceneGraph::Renderer::Render(Dali::Internal::Context&, Dali::Internal::SceneGraph::TextureCache&, unsigned int, Dali::Internal::SceneGraph::Shader&, Dali::Matrix const&, Dali::Matrix const&, Dali::Matrix const&, float, bool) (scene-graph-renderer.cpp:213)
==5511==    by 0x55891B2: Dali::Internal::Render::ProcessRenderInstruction(Dali::Internal::SceneGraph::RenderInstruction const&, Dali::Internal::Context&, Dali::Internal::SceneGraph::TextureCache&, Dali::Internal::SceneGraph::Shader&, unsigned int, float) (render-algorithms.cpp:146)
==5511==    by 0x558BDE5: Dali::Internal::SceneGraph::RenderManager::DoRender(Dali::Internal::SceneGraph::RenderInstruction&, Dali::Internal::SceneGraph::Shader&, float) (render-manager.cpp:558)
==5511==    by 0x558C423: Dali::Internal::SceneGraph::RenderManager::Render(Dali::Integration::RenderStatus&) (render-manager.cpp:430)
==5511==    by 0x551D25C: Dali::Internal::Core::Render(Dali::Integration::RenderStatus&) (core-impl.cpp:278)
==5511==    by 0x4E72B04: Dali::Internal::Adaptor::RenderThread::Run() (render-thread.cpp:199)
==5511==    by 0x4E72B58: Dali::Internal::Adaptor::RenderThread::InternalThreadEntryFunc(void*) (render-thread.h:197)
==5511==    by 0x4C30E26: ??? (in /usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so)
==5511==
==5511== This conflicts with a previous write of size 4 by thread #3
==5511== Locks held: none
==5511==    at 0x559F1EF: Dali::Internal::SceneGraph::SceneGraphBuffers::Swap() (scene-graph-buffers.cpp:45)
==5511==    by 0x55ADADA: Dali::Internal::SceneGraph::UpdateManager::Update(float, unsigned int, unsigned int) (update-manager.cpp:1121)
==5511==    by 0x551D229: Dali::Internal::Core::Update(float, unsigned int, unsigned int, Dali::Integration::UpdateStatus&) (core-impl.cpp:261)
==5511==    by 0x4E74438: Dali::Internal::Adaptor::UpdateThread::Run() (update-thread.cpp:119)
==5511==    by 0x4E744A8: Dali::Internal::Adaptor::UpdateThread::InternalThreadEntryFunc(void*) (update-thread.h:107)
==5511==    by 0x4C30E26: ??? (in /usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so)
==5511==    by 0x908A181: start_thread (pthread_create.c:312)
==5511==    by 0x5E8EFBC: clone (clone.S:111)
==5511==
==5511== Address 0x14ECD29C is 12 bytes inside a block of size 24 alloc'd
==5511==    at 0x4C2C460: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so)
==5511==    by 0x551D745: Dali::Internal::Core::Core(Dali::Integration::RenderController&, Dali::Integration::PlatformAbstraction&, Dali::Integration::GlAbstraction&, Dali::Integration::GlSyncAbstraction&, Dali::Integration::GestureManager&, Dali::ResourcePolicy::DataRetention) (core-impl.cpp:149)
==5511==    by 0x55BB824: Dali::Integration::Core::New(Dali::Integration::RenderController&, Dali::Integration::PlatformAbstraction&, Dali::Integration::GlAbstraction&, Dali::Integration::GlSyncAbstraction&, Dali::Integration::GestureManager&, Dali::ResourcePolicy::DataRetention) (core.cpp:37)
==5511==    by 0x4E9E9E8: Dali::Internal::Adaptor::Adaptor::Initialize(Dali::Configuration::ContextLoss) (adaptor-impl.cpp:139)
==5511==    by 0x4E9FC3C: Dali::Internal::Adaptor::Adaptor::New(Dali::Any, Dali::RenderSurface*, Dali::Configuration::ContextLoss, Dali::Internal::Adaptor::EnvironmentOptions*) (adaptor-impl.cpp:79)
==5511==    by 0x4E9FD05: Dali::Internal::Adaptor::Adaptor::New(Dali::Window, Dali::Configuration::ContextLoss, Dali::Internal::Adaptor::EnvironmentOptions*) (adaptor-impl.cpp:89)
==5511==    by 0x4EA22BB: Dali::Internal::Adaptor::Application::CreateAdaptor() (application-impl.cpp:134)
==5511==    by 0x4EA2407: Dali::Internal::Adaptor::Application::OnInit() (application-impl.cpp:175)
==5511==    by 0x4EB8B88: Dali::Internal::Adaptor::Framework::AppStatusHandler(int, void*) (framework-tizen.cpp:380)
==5511==    by 0x7D6BC9D: app_appcore_create (app_main.c:149)
==5511==    by 0x7F6E819: appcore_efl_main (appcore-efl.c:16)
==5511==    by 0x7D6BDEC: app_efl_main (app_main.c:116)
==5511== ----------------------------------------------------------------

Change-Id: I1bdcfd8c00d9f37b0dd1f3f580f1bd69d4e0a20b

8 years agoMerge "Changed RendererAttachment to use blend flag from RenderDataProvider rather...
Kimmo Hoikka [Tue, 25 Aug 2015 14:44:22 +0000 (07:44 -0700)]
Merge "Changed RendererAttachment to use blend flag from RenderDataProvider rather than base class's mUseBlend flag." into devel/master

8 years agoRemove Helgrind warning when Node flags are illegally accessed from event and update... 26/46726/1
Kimmo Hoikka [Tue, 25 Aug 2015 09:19:24 +0000 (10:19 +0100)]
Remove Helgrind warning when Node flags are illegally accessed from event and update thread at the same time

Change-Id: I45c483fe5db2d3cad32144f120b7d7311867658c

8 years ago(Logging) Ensure we do not output unrequired spaces & colons when trace is not enabled 70/46470/1
Adeel Kazmi [Thu, 20 Aug 2015 16:23:19 +0000 (17:23 +0100)]
(Logging) Ensure we do not output unrequired spaces & colons when trace is not enabled

Before: No Trace:
INFO: DALI: : MyDebug

Now: No Trace:
INFO: DALI: MyDebug

Before: Trace:
INFO: DALI: Entr: MyFunction()
INFO: DALI: :  MyDebug
INFO: DALI: Exit: MyFunction()

Now: Trace:
INFO: DALI: Entr: MyFunction()
INFO: DALI:     :  MyDebug
INFO: DALI: Exit: MyFunction()

Change-Id: I3a04b50154a4f23ca90cad5a7ad2ef26ae6cb1cf

8 years agoDALi Version 1.1.0 52/46452/1 dali_1.1.0
Chu Hoang [Thu, 20 Aug 2015 12:32:56 +0000 (13:32 +0100)]
DALi Version 1.1.0

Change-Id: I5a94629a418273369cd7cf3fa79d421676519175

8 years agoMerge "Ensure synchronous buffer decode when using encoded buffer image." into devel...
Kimmo Hoikka [Fri, 14 Aug 2015 16:42:28 +0000 (09:42 -0700)]
Merge "Ensure synchronous buffer decode when using encoded buffer image." into devel/master

8 years agoMerge "Changed drawing order for 2D and 3D layers" into devel/master
Kimmo Hoikka [Fri, 14 Aug 2015 16:26:01 +0000 (09:26 -0700)]
Merge "Changed drawing order for 2D and 3D layers" into devel/master

8 years agoEnsure synchronous buffer decode when using encoded buffer image. 92/46092/2
Adeel Kazmi [Fri, 14 Aug 2015 13:49:02 +0000 (14:49 +0100)]
Ensure synchronous buffer decode when using encoded buffer image.

Change-Id: Iaff725f9ee05c2c35d902849949389807689995f

8 years agoImplemented WeakHandle in dali-core 38/46038/3
Richard Huang [Thu, 13 Aug 2015 10:10:25 +0000 (11:10 +0100)]
Implemented WeakHandle in dali-core

WeakHandle stores a weak pointer to an internal Dali object. The handle to the object
can be accessed if the object exists, and such access is not reference counted. When
the object is deleted, the weak pointer will be set to NULL, and any further attmpt
to access to a deleted object will return an empty handle.

Change-Id: I56c8b0ea398f22c1d735270e6287124bdcea740b

8 years agoRemove Boost completely 75/46075/1
Adeel Kazmi [Thu, 13 Aug 2015 19:08:54 +0000 (20:08 +0100)]
Remove Boost completely

Change-Id: Iedeecbfa65be7714db94bc15d94f545d5d5bb6aa

8 years agoRemove unnecessary timeDelta parameter from PostRender 84/45084/4
Adeel Kazmi [Fri, 31 Jul 2015 09:11:33 +0000 (10:11 +0100)]
Remove unnecessary timeDelta parameter from PostRender

Change-Id: Ie18c2d9e4b237d430673d7c5ed6f08f34ed23cc0

8 years agoChanged drawing order for 2D and 3D layers 12/46012/1
Ferran Sole [Thu, 13 Aug 2015 08:38:24 +0000 (09:38 +0100)]
Changed drawing order for 2D and 3D layers

 -In 2D Layers, all renderers (opaque and transparent) are sorted based on its SortModifier/DepthIndex.
 -In 3D Layers, opaque renderers are sorted by mesh and material to reduce GL state changes
  and transparent renderers are sorted back to front. SortModifier/DepthIndex is used as an offset to
  the Z position of the transparent renderers when sorting.

Change-Id: I5ca4cd4786bd106d62edf6428c58ad538a0dd2f3

8 years agoDALi Version 1.0.53 15/45915/1 dali_1.0.53
Adeel Kazmi [Wed, 12 Aug 2015 09:50:16 +0000 (10:50 +0100)]
DALi Version 1.0.53

Change-Id: Ic6d5c2aa2da684eaf17b180157885db9fdf224ec

8 years agoChanged RendererAttachment to use blend flag from RenderDataProvider rather than... 85/44285/3
Chu Hoang [Mon, 20 Jul 2015 08:20:26 +0000 (09:20 +0100)]
Changed RendererAttachment to use blend flag from RenderDataProvider rather than base class's mUseBlend flag.

This fixes a issue where (when adding to the stage, removing and then re-adding) the Renderer blend flag can be become out of sync with the RenderableAttachment's mUseBlend flag.

Related: moved Renderer::mUseBlend flag and relevant methods to ImageRender since this way of controlling the blending is now specific to ImageRenderer.

Change-Id: Iebc0664946fe4c83b43291aa8004c66e004cbf22

8 years agoChange Epsilon 0 and 1 to use the compiler provided values 21/45721/1
Kimmo Hoikka [Mon, 10 Aug 2015 15:01:12 +0000 (16:01 +0100)]
Change Epsilon 0 and 1 to use the compiler provided values

Change-Id: I68cb4b0fe5c965c47560a46aa5575836b8f5743c

8 years agoDALi Version 1.0.52 66/45466/1 dali_1.0.52
Xiangyin Ma [Thu, 6 Aug 2015 10:05:16 +0000 (11:05 +0100)]
DALi Version 1.0.52

Change-Id: Ie07d42a55baf409e7b5b5a859e3294eb209d08ad

8 years agoNew Popup implementation 88/44788/10
Tom Robinson [Mon, 27 Jul 2015 16:18:31 +0000 (17:18 +0100)]
New Popup implementation

Change-Id: I8657560f0a83ef7beadf2a312096477ccb1fbb7a

8 years agoRe-enable sort modifier ( depth index ) in 3D layers 09/45209/1
Ferran Sole [Mon, 3 Aug 2015 13:30:39 +0000 (14:30 +0100)]
Re-enable sort modifier ( depth index ) in 3D layers

SortModifier, or DepthIndex in Renderers, is now being considered as an offset to
the Z value used when ordering transparent RenderItems back-to-front

Change-Id: Idc5f5cb825395ed0fb1ace211b11877109dc8ac5

8 years agoFixed memory corruption in RendererAttachment::DoPrepareRender() 11/45111/2
Paul Wisbey [Fri, 31 Jul 2015 15:18:02 +0000 (16:18 +0100)]
Fixed memory corruption in RendererAttachment::DoPrepareRender()

(Fixes crash issue in blocks.example)

Change-Id: I18a3f3690ddc0204a1b69c0687aabae4fc627dad

8 years agoUpdate license information in the spec file 65/45065/1
Yoonsang Lee [Fri, 31 Jul 2015 05:53:43 +0000 (14:53 +0900)]
Update license information in the spec file

Change-Id: I78701683f7b42d44b732749a3c9e737b636889de

8 years agoDALi Version 1.0.51 81/44981/1 dali_1.0.51
Tom Robinson [Thu, 30 Jul 2015 08:26:20 +0000 (09:26 +0100)]
DALi Version 1.0.51

Change-Id: I38cc4bae9ccede9450d48a4286655f3d8ecdb428

8 years agoCleanup platform abstraction API (to allow removal of dead code from Adaptor) 28/44928/1
Kimmo Hoikka [Wed, 29 Jul 2015 12:02:38 +0000 (13:02 +0100)]
Cleanup platform abstraction API (to allow removal of dead code from Adaptor)

Change-Id: I70b633fa641676d8805f9e854806f54d1372fcbb

8 years agoTemporarily disable v8 build and install from dali_env 74/44874/2
Nick Holland [Tue, 28 Jul 2015 15:36:36 +0000 (16:36 +0100)]
Temporarily disable v8 build and install from dali_env

when running dali_env script the v8 installation fails if the
machine is not using a http proxy.

Change-Id: I5caa75723c0a211b045c8ab30744c9777ae1d233

8 years agoMerge "Stop setting crazy Z value when SetSize(width,height) is used" into devel...
Adeel Kazmi [Tue, 28 Jul 2015 14:42:30 +0000 (07:42 -0700)]
Merge "Stop setting crazy Z value when SetSize(width,height) is used" into devel/master

8 years agoRemove on/off stage behavior from Shader 25/44425/4
Paul Wisbey [Thu, 16 Jul 2015 09:28:37 +0000 (10:28 +0100)]
Remove on/off stage behavior from Shader

Change-Id: I2ee41d546fee1c32c017a507ea9bfac9e471822e

8 years agoStop setting crazy Z value when SetSize(width,height) is used 05/44605/3
Kimmo Hoikka [Thu, 23 Jul 2015 12:42:26 +0000 (13:42 +0100)]
Stop setting crazy Z value when SetSize(width,height) is used

Change-Id: Ic428a491ec271748eac7930a3126c4f9fb5132e3

8 years agoKeep track of Bitmap data ownership 14/44614/9
Paul Wisbey [Thu, 23 Jul 2015 16:59:05 +0000 (17:59 +0100)]
Keep track of Bitmap data ownership

i.e. Disard refers to whether the data can be released after uploading.
ResourcePolicy::RETAIN does not mean that the data is externally owned.

Change-Id: I550f227e5463d677ba7e5ac5e889989360834089

8 years agoMerge "Changed UtcFrustumNearCullP and UtcFrustumFarCullP to explicitly set the posit...
Adeel Kazmi [Mon, 27 Jul 2015 10:40:29 +0000 (03:40 -0700)]
Merge "Changed UtcFrustumNearCullP and UtcFrustumFarCullP to explicitly set the position of the mesh actor instead of relying on the ParentOrigin since the parent might not have any depth. Added more negative tests." into devel/master

8 years agoChanged UtcFrustumNearCullP and UtcFrustumFarCullP to explicitly set the position... 89/44689/1
Chu Hoang [Fri, 24 Jul 2015 15:22:40 +0000 (16:22 +0100)]
Changed UtcFrustumNearCullP and UtcFrustumFarCullP to explicitly set the position of the mesh actor instead of relying on the ParentOrigin since the parent might not have any depth. Added more negative tests.

Refactored and cleaned up utc-Dali-Internal-FrustumCulling tests.

Change-Id: I5fa7fd85b6cc0866749733d3c13af1202b5cb4a3

8 years agoRemoved unneeded index param and code from ConnectNode / Child 10/44610/2
Tom Robinson [Thu, 23 Jul 2015 13:58:38 +0000 (14:58 +0100)]
Removed unneeded index param and code from ConnectNode / Child

Change-Id: Ic6dd8519b44d861e3208b4d701d18e3f43776506

8 years agoFix sampler property types 09/44609/1
Lee Morgan [Thu, 23 Jul 2015 13:17:18 +0000 (14:17 +0100)]
Fix sampler property types

Change-Id: Ida87e40cd5a8c0ffa90fb6ca4e94ab69cccff5bc

8 years agoMerge "DALi Version 1.0.50" into devel/master
Adeel Kazmi [Thu, 23 Jul 2015 11:08:43 +0000 (04:08 -0700)]
Merge "DALi Version 1.0.50" into devel/master

8 years agoDALi Version 1.0.50 81/44581/1 dali_1.0.50
Richard Huang [Thu, 23 Jul 2015 10:55:38 +0000 (11:55 +0100)]
DALi Version 1.0.50

Change-Id: Ibbd0e36ba833d3b024934038b2eda74e59cfd0e3

8 years agoMerge "Cleanup dead declaration from ShaderEffect" into devel/master
Kimmo Hoikka [Thu, 23 Jul 2015 08:55:21 +0000 (01:55 -0700)]
Merge "Cleanup dead declaration from ShaderEffect" into devel/master