Add post processor
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit / dali-toolkit-test-utils / test-render-controller.h
1 #ifndef TEST_RENDER_CONTROLLER_H
2 #define TEST_RENDER_CONTROLLER_H
3
4 /*
5  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali/integration-api/render-controller.h>
23 #include <dali/public-api/common/dali-common.h>
24
25 namespace Dali
26 {
27 class DALI_CORE_API TestRenderController : public Dali::Integration::RenderController
28 {
29 public:
30   TestRenderController();
31   ~TestRenderController() override;
32
33   void RequestUpdate(bool forceUpdate) override;
34   void RequestProcessEventsOnIdle(bool forceProcess) override;
35
36   typedef enum
37   {
38     RequestUpdateFunc,
39     RequestProcessEventsOnIdleFunc,
40   } TestRenderControllerFuncEnum;
41
42   bool WasCalled(TestRenderControllerFuncEnum func);
43   void Initialize();
44
45 private:
46   bool mRequestUpdateCalled;
47   bool mRequestProcessEventsOnIdleCalled;
48 };
49
50 } // namespace Dali
51
52 #endif // TEST_RENDER_CONTROLLER_H