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 "frame_scene_sched.h" 20 #include "frame_window_mgr.h" 21 #include "rme_core_sched.h" 22 23 #include <string> 24 25 namespace OHOS { 26 namespace RME { 27 class RmeSceneSched : public FrameSceneSched { 28 public: 29 RmeSceneSched(); 30 ~RmeSceneSched() override; 31 32 bool Init(); 33 void HandleBeginFrame() override; 34 void HandleEndFrame() override; 35 36 void BeginFlushAnimation() override; 37 void EndFlushAnimation() override; 38 39 void BeginFlushBuild() override; 40 void EndFlushBuild() override; 41 42 void BeginFlushLayout() override; 43 void EndFlushLayout() override; 44 45 void BeginFlushRender() override; 46 void EndFlushRender() override; 47 48 void BeginFlushRenderFinish() override; 49 void EndFlushRenderFinish() override; 50 51 void BeginProcessPostFlush() override; 52 void ProcessCommandsStart() override; 53 void AnimateStart() override; 54 void RenderStart() override; 55 void SendCommandsStart() override; 56 private: 57 int curWorkingStatus; 58 RmeCoreSched *rmeCoreSched; 59 }; 60 } // namespace RME 61 } // namespace OHOS 62 #endif 63