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 FRAME_SCENE_SCHED_H 17 #define FRAME_SCENE_SCHED_H 18 19 #include "rme_log_domain.h" 20 21 namespace OHOS { 22 namespace RME { 23 class FrameSceneSched { 24 public: FrameSceneSched()25 FrameSceneSched() {}; 26 virtual ~FrameSceneSched() = default; 27 28 virtual void HandleBeginScene() = 0; 29 virtual void HandleEndScene() = 0; 30 virtual void BeginFlushAnimation() = 0; 31 virtual void EndFlushAnimation() = 0; 32 virtual void BeginFlushBuild() = 0; 33 virtual void EndFlushBuild() = 0; 34 virtual void BeginFlushLayout() = 0; 35 virtual void EndFlushLayout() = 0; 36 virtual void BeginFlushRender() = 0; 37 virtual void EndFlushRender() = 0; 38 virtual void BeginFlushRenderFinish() = 0; 39 virtual void EndFlushRenderFinish() = 0; 40 virtual void BeginProcessPostFlush() = 0; 41 virtual void ProcessCommandsStart() = 0; 42 virtual void AnimateStart() = 0; 43 virtual void RenderStart() = 0; 44 virtual void SendCommandsStart() = 0; 45 }; 46 } // namespace RME 47 } // namespace OHOS 48 #endif 49