We no longer check the adapter's state when requesting event process.
Change-Id: I64dab45b302284c71b9b911511f44eac70a0a677
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
{
}
-void TestRenderController::RequestUpdate(bool forceUpdate)
+void TestRenderController::RequestUpdate()
{
mRequestUpdateCalled = true;
}
-void TestRenderController::RequestProcessEventsOnIdle(bool forceProcess)
+void TestRenderController::RequestProcessEventsOnIdle()
{
mRequestProcessEventsOnIdleCalled = true;
}
#define TEST_RENDER_CONTROLLER_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
TestRenderController();
~TestRenderController() override;
- void RequestUpdate(bool forceUpdate) override;
- void RequestProcessEventsOnIdle(bool forceProcess) override;
+ void RequestUpdate() override;
+ void RequestProcessEventsOnIdle() override;
typedef enum
{
}
}
-void Adaptor::RequestUpdate(bool forceUpdate)
+void Adaptor::RequestUpdate()
{
switch(mState)
{
case PAUSED:
case PAUSED_WHILE_HIDDEN:
{
- if(forceUpdate)
- {
- // Update (and resource upload) without rendering
- mThreadController->RequestUpdateOnce(UpdateMode::SKIP_RENDER);
- }
+ // Update (and resource upload) without rendering
+ mThreadController->RequestUpdateOnce(UpdateMode::SKIP_RENDER);
break;
}
default:
}
}
-void Adaptor::RequestProcessEventsOnIdle(bool forceProcess)
+void Adaptor::RequestProcessEventsOnIdle()
{
- // Only request a notification if the Adaptor is actually running
- // and we haven't installed the idle notification
- if((!mNotificationOnIdleInstalled) && (RUNNING == mState || READY == mState || forceProcess))
+ // Only request a notification if we haven't installed the idle notification
+ // We want to run the processes even when paused
+ if(!mNotificationOnIdleInstalled && STOPPED != mState)
{
- mNotificationOnIdleInstalled = AddIdleEnterer(MakeCallback(this, &Adaptor::ProcessCoreEventsFromIdle), forceProcess);
+ mNotificationOnIdleInstalled = AddIdleEnterer(MakeCallback(this, &Adaptor::ProcessCoreEventsFromIdle), true);
}
}
void Adaptor::OnDamaged(const DamageArea& area)
{
// This is needed for the case where Dali window is partially obscured
- RequestUpdate(false);
+ RequestUpdate();
}
void Adaptor::SurfaceResizePrepare(Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize)
/**
* @copydoc Dali::Integration::RenderController::RequestUpdate()
*/
- void RequestUpdate(bool forceUpdate) override;
+ void RequestUpdate() override;
/**
* @copydoc Dali::Integration::RenderController::RequestProcessEventsOnIdle()
*/
- void RequestProcessEventsOnIdle(bool forceProcess) override;
+ void RequestProcessEventsOnIdle() override;
public: // From Dali::Internal::Adaptor::WindowVisibilityObserver
/**