// remove (last?) reference to stage
mStage.Reset();
-
-}
-
-Integration::ContextNotifierInterface* Core::GetContextNotifier()
-{
- return mStage.Get();
-}
-
-void Core::RecoverFromContextLoss()
-{
- DALI_LOG_INFO(gCoreFilter, Debug::Verbose, "Core::RecoverFromContextLoss()\n");
-
- mStage->GetRenderTaskList().RecoverFromContextLoss(); // Re-trigger render-tasks
-}
-
-void Core::ContextCreated()
-{
- // TODO:
- DALI_LOG_ERROR("TODO: NOTIFY CONTEXT CREATED\n");
-}
-
-void Core::ContextDestroyed()
-{
- // TODO:
- DALI_LOG_ERROR("TODO: NOTIFY CONTEXT DESTROYED\n");
}
void Core::SurfaceResized( unsigned int width, unsigned int height )
// INTERNAL INCLUDES
#include <dali/public-api/common/view-mode.h>
#include <dali/public-api/object/ref-object.h>
-#include <dali/integration-api/context-notifier.h>
#include <dali/integration-api/resource-policies.h>
#include <dali/internal/common/owner-pointer.h>
#include <dali/internal/event/animation/animation-playlist-declarations.h>
~Core();
/**
- * @copydoc Dali::Integration::Core::GetContextNotifier()
- */
- Integration::ContextNotifierInterface* GetContextNotifier();
-
- /**
- * @copydoc Dali::Integration::Core::ContextCreated()
- */
- void ContextCreated();
-
- /**
- * @copydoc Dali::Integration::Core::ContextDestroyed()
- */
- void ContextDestroyed();
-
- /**
- * @copydoc Dali::Integration::Core::RecoverFromContextLoss()
- */
- void RecoverFromContextLoss();
-
- /**
* @copydoc Dali::Integration::Core::SurfaceResized(unsigned int, unsigned int)
*/
void SurfaceResized(unsigned int width, unsigned int height);
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
return mSceneCreatedSignal;
}
-void Stage::NotifyContextLost()
-{
- mContextLostSignal.Emit();
-}
-
-void Stage::NotifyContextRegained()
-{
- mContextRegainedSignal.Emit();
-}
-
-
void Stage::RequestRebuildDepthTree()
{
DALI_LOG_INFO(gLogFilter, Debug::General, "RequestRebuildDepthTree()\n");
#define DALI_INTERNAL_STAGE_H
/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
#include <dali/public-api/common/stage.h>
#include <dali/devel-api/common/stage-devel.h>
#include <dali/public-api/object/base-object.h>
-#include <dali/integration-api/context-notifier.h>
#include <dali/internal/common/owner-pointer.h>
#include <dali/internal/event/actors/layer-impl.h>
#include <dali/internal/event/common/event-thread-services.h>
/**
* Implementation of Stage
*/
-class Stage : public BaseObject, public RenderTaskDefaults, public Integration::ContextNotifierInterface, public EventThreadServices
+class Stage : public BaseObject, public RenderTaskDefaults, public EventThreadServices
{
public:
*/
static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor );
-private: // Implementation of ContextNotificationInterface:
-
- /**
- * @copydoc Dali::Integration::NotifyContextLost();
- */
- virtual void NotifyContextLost();
-
- /**
- * @copydoc Dali::Integration::NotifyContextRegained();
- */
- virtual void NotifyContextRegained();
-
public: // Implementation of EventThreadServices
/**
#define __DALI_STAGE_H__
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
WheelEventSignalType& WheelEventSignal();
/**
+ * @DEPRECATED_1_3.20 Not relevant for new Graphics API.
+ *
* @brief This signal is emitted when the GL context is lost (Platform specific behaviour).
*
* If the application is responsible for handling context loss, it should listen to
ContextStatusSignal& ContextLostSignal();
/**
+ * @DEPRECATED_1_3.20 Not relevant for new Graphics API.
+ *
* @brief This signal is emitted when the GL context is regained (Platform specific
* behavior).
*
* If the application is responsible for handling context loss, it should listen to
* this signal and rebuild UI components on receipt.
+ * @deprecate
* @SINCE_1_0.0
* @return The context regained signal to connect to
*/