1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef RME_SCENE_SCHED_H
17 #define RME_SCENE_SCHED_H
18 
19 #include "rme_core_sched.h"
20 #include "frame_scene_sched.h"
21 
22 namespace OHOS {
23 namespace RME {
24 class RmeSceneSched : public FrameSceneSched {
25 public:
26     RmeSceneSched();
27     ~RmeSceneSched() override;
28 
29     bool Init();
30     void HandleBeginScene() override;
31     void HandleEndScene() override;
32 
33     void BeginFlushAnimation() override;
34     void EndFlushAnimation() override;
35 
36     void BeginFlushBuild() override;
37     void EndFlushBuild() override;
38 
39     void BeginFlushLayout() override;
40     void EndFlushLayout() override;
41 
42     void BeginFlushRender() override;
43     void EndFlushRender() override;
44 
45     void BeginFlushRenderFinish() override;
46     void EndFlushRenderFinish() override;
47 
48     void BeginProcessPostFlush() override;
49     void ProcessCommandsStart() override;
50     void AnimateStart() override;
51     void RenderStart() override;
52     void SendCommandsStart() override;
53 private:
54     int curWorkingStatus;
55     RmeCoreSched *rmeCoreSched;
56 };
57 } // namespace RME
58 } // namespace OHOS
59 #endif
60