1 /*
2  * Copyright (c) 2021 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 "frame_collector.h"
17 
18 namespace OHOS {
19 namespace Rosen {
GetInstance()20 FrameCollector &FrameCollector::GetInstance()
21 {
22     if (instance == nullptr) {
23         static std::mutex mutex;
24         std::lock_guard<std::mutex> lock(mutex);
25         if (instance == nullptr) {
26             instance = std::unique_ptr<FrameCollector>(new FrameCollector());
27         }
28     }
29     return *instance;
30 }
31 
MarkFrameEvent(const FrameEventType & type,int64_t timeNs)32 void FrameCollector::MarkFrameEvent(const FrameEventType &type, int64_t timeNs)
33 {
34 }
35 
ProcessUIMarkLocked(int32_t index,int64_t timeNs)36 bool FrameCollector::ProcessUIMarkLocked(int32_t index, int64_t timeNs)
37 {
38     return false;
39 }
40 
ClearEvents()41 void FrameCollector::ClearEvents()
42 {
43 }
44 
FrameCollector()45 FrameCollector::FrameCollector()
46 {
47 }
48 
SwitchFunction(const char * key,const char * value,void * context)49 void FrameCollector::SwitchFunction(const char *key, const char *value, void *context)
50 {
51 }
52 } // namespace Rosen
53 } // namespace OHOS
54