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_INFO_CONST_H 17 #define FRAME_INFO_CONST_H 18 19 namespace OHOS { 20 namespace RME { 21 enum class FrameSchedEvent {}; 22 23 enum class FrameEvent { 24 EVENT_BEGIN_FRAME, 25 EVENT_FLUSH_ANIMATION_START, 26 EVENT_FLUSH_ANIMATION_END, 27 EVENT_FLUSH_BUILD_START, 28 EVENT_FLUSH_BUILD_END, 29 EVENT_FLUSH_LAYOUT_START, 30 EVENT_FLUSH_LAYOUT_END, 31 EVENT_FLUSH_RENDER_START, 32 EVENT_FLUSH_RENDER_END, 33 EVENT_FLUSH_RENDER_FINISH_START, 34 EVENT_FLUSH_RENDER_FINISH_END, 35 EVENT_PROCESS_POST_FLUSH_START, 36 EVENT_PROCESS_COMMANDS_START, 37 EVENT_ANIMATE_START, 38 EVENT_RENDER_START, 39 EVENT_SEND_COMMANDS_START, 40 EVENT_END_FRAME, 41 EVENT_SET_PARAM, 42 UNKNOWN, 43 }; 44 45 enum class SceneEvent { 46 SCENE_INVALID = 0, 47 VIDEO, 48 SLIDE, 49 GAME, 50 CLICK, 51 SCENE_MAX, 52 }; 53 } // namespace RME 54 } // namespace OHOS 55 56 #endif 57