Add handling for context loss and regain behaviour 70/27370/17
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 11 Sep 2014 18:01:07 +0000 (19:01 +0100)
committerDavid Steele <david.steele@partner.samsung.com>
Wed, 5 Nov 2014 13:19:21 +0000 (13:19 +0000)
commitc432d327b0bd173c6fee439624aab6889dab6b95
treecd8c230a440184f4acfc0b0d5b60aa32bf33b4ab
parentd393dad00a2f411b3f864254485d324487c003f2
Add handling for context loss and regain behaviour

[Problem] Dali doesn't handle context loss
[Cause] Never tested.
[Solution]

Fixed ReplaceSurface handling for window surface case. Fixed window destructor to ensure
indicator is correctly removed.

Added new application policy for dealing with context loss. If the application
doesn't support context loss, then Dali must instead retain resource data or have
some means to re-load it.

Added a new data retention policy to PlatformAbstraction. This allows Core to query
what to do with bitmap data and mesh data on context loss / resume.

Change-Id: Ic98d04ada6915eaa600490c1e9465232b3ed6b64
Signed-off-by: David Steele <david.steele@partner.samsung.com>
26 files changed:
adaptors/base/render-thread.cpp
adaptors/common/adaptor-impl.cpp
adaptors/common/adaptor-impl.h
adaptors/common/adaptor.cpp
adaptors/common/adaptor.h
adaptors/common/application-impl.cpp
adaptors/common/application-impl.h
adaptors/common/window-impl.cpp [deleted file]
adaptors/public-api/adaptor-framework/application-configuration.h [new file with mode: 0644]
adaptors/public-api/adaptor-framework/application.cpp
adaptors/public-api/adaptor-framework/application.h
adaptors/public-api/dali.h
adaptors/public-api/file.list
adaptors/wayland/window-impl-wl.cpp
adaptors/x11/egl-implementation-x.cpp
adaptors/x11/window-impl-x.cpp
automated-tests/src/dali-adaptor-internal/image-loaders.cpp
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-application.cpp
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-application.h
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.cpp
automated-tests/src/dali-adaptor/dali-test-suite-utils/test-platform-abstraction.h
platform-abstractions/slp/image-loaders/image-loader.cpp
platform-abstractions/slp/resource-loader/loader-font.cpp
platform-abstractions/slp/resource-loader/resource-loader.cpp
platform-abstractions/slp/resource-loader/resource-thread-distance-field.cpp
platform-abstractions/slp/resource-loader/resource-thread-text.cpp