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