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 #include "base/log/frame_report.h" 17 18 namespace OHOS::Ace { GetInstance()19FrameReport& FrameReport::GetInstance() 20 { 21 static FrameReport instance; 22 return instance; 23 } 24 FrameReport()25FrameReport::FrameReport() {} 26 ~FrameReport()27FrameReport::~FrameReport() {} 28 LoadLibrary()29bool FrameReport::LoadLibrary() 30 { 31 frameSchedHandle_ = nullptr; 32 frameSchedSoLoaded_ = false; 33 return false; 34 } 35 CloseLibrary()36void FrameReport::CloseLibrary() {} 37 LoadSymbol(const char * symName)38void *FrameReport::LoadSymbol(const char *symName) 39 { 40 return nullptr; 41 } 42 Init()43void FrameReport::Init() 44 { 45 frameInitFunc_ = nullptr; 46 } 47 GetEnable()48int FrameReport::GetEnable() 49 { 50 frameGetEnableFunc_ = nullptr; 51 return false; 52 } 53 GetFrameReportEnable()54int FrameReport::GetFrameReportEnable() 55 { 56 return false; 57 } 58 BeginFlushAnimation()59void FrameReport::BeginFlushAnimation() 60 { 61 beginFlushAnimationFunc_ = nullptr; 62 } 63 EndFlushAnimation()64void FrameReport::EndFlushAnimation() 65 { 66 endFlushAnimationFunc_ = nullptr; 67 } 68 BeginFlushBuild()69void FrameReport::BeginFlushBuild() 70 { 71 beginFlushBuildFunc_ = nullptr; 72 } 73 EndFlushBuild()74void FrameReport::EndFlushBuild() 75 { 76 endFlushBuildFunc_ = nullptr; 77 } 78 BeginFlushLayout()79void FrameReport::BeginFlushLayout() 80 { 81 beginFlushLayoutFunc_ = nullptr; 82 } 83 EndFlushLayout()84void FrameReport::EndFlushLayout() 85 { 86 endFlushLayoutFunc_ = nullptr; 87 } 88 BeginFlushRender()89void FrameReport::BeginFlushRender() 90 { 91 beginFlushRenderFunc_ = nullptr; 92 } 93 EndFlushRender()94void FrameReport::EndFlushRender() 95 { 96 endFlushRenderFunc_ = nullptr; 97 } 98 BeginFlushRenderFinish()99void FrameReport::BeginFlushRenderFinish() 100 { 101 beginFlushRenderFinishFunc_ = nullptr; 102 } 103 EndFlushRenderFinish()104void FrameReport::EndFlushRenderFinish() 105 { 106 endFlushRenderFinishFunc_ = nullptr; 107 } 108 BeginProcessPostFlush()109void FrameReport::BeginProcessPostFlush() 110 { 111 beginProcessPostFunc_ = nullptr; 112 } 113 BeginListFling()114void FrameReport::BeginListFling() 115 { 116 beginListFlingFunc_ = nullptr; 117 } 118 EndListFling()119void FrameReport::EndListFling() 120 { 121 endListFlingFunc_ = nullptr; 122 } 123 } // namespace ACE 124