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_UI_INTF_H 17 #define FRAME_UI_INTF_H 18 19 namespace OHOS { 20 namespace RME { 21 class FrameUiIntf { 22 public: 23 static FrameUiIntf& GetInstance(); 24 void Init(); 25 int GetSenseSchedEnable(); 26 void BeginFlushAnimation() const; 27 void EndFlushAnimation() const; 28 29 void BeginFlushBuild() const; 30 void EndFlushBuild() const; 31 void BeginFlushLayout() const; 32 void EndFlushLayout() const; 33 34 void BeginFlushRender() const; 35 void EndFlushRender() const; 36 37 void BeginFlushRenderFinish() const; 38 void EndFlushRenderFinish() const; 39 40 void BeginProcessPostFlush() const; 41 void ProcessCommandsStart() const; 42 void AnimateStart() const; 43 void RenderStart() const; 44 void SendCommandsStart() const; 45 46 void BeginListFling() const; 47 void EndListFling() const; 48 private: 49 bool inited = false; 50 }; 51 } // namespace RME 52 } // namespace OHOS 53 #endif 54