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