Prevent texture removal after TextureManager destroyed 28/169728/2
authorDavid Steele <david.steele@samsung.com>
Mon, 22 Jan 2018 15:15:48 +0000 (15:15 +0000)
committerDavid Steele <david.steele@samsung.com>
Fri, 9 Feb 2018 11:48:10 +0000 (11:48 +0000)
commitb5dfb0468ead331593b706bb116d6a6aed97d88c
treeecafb0262064916141d2cec9d27fa029587a0006
parent24754c36dd4d11af5b927511580fdeb2514e9d1c
Prevent texture removal after TextureManager destroyed

On shutdown, if there is an ImageView actor with an
AnimatedImageVisual still in the tree, then on destruction it tries to
kill off textures. However, TextureManager has already been shutdown
and can't be called.

Adding a lifecycle observer so AnimatedImageVisual helper classes can shutdown cleanly.

Change-Id: I5f07288291b850e69f45df879cce8c27bccb3f6e
dali-toolkit/internal/visuals/animated-image/fixed-image-cache.cpp
dali-toolkit/internal/visuals/animated-image/image-cache.cpp
dali-toolkit/internal/visuals/animated-image/image-cache.h
dali-toolkit/internal/visuals/animated-image/rolling-gif-image-cache.cpp
dali-toolkit/internal/visuals/animated-image/rolling-image-cache.cpp
dali-toolkit/internal/visuals/texture-manager-impl.cpp
dali-toolkit/internal/visuals/texture-manager-impl.h