123b3eb3cSopenharmony_ci/*
223b3eb3cSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
323b3eb3cSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
423b3eb3cSopenharmony_ci * you may not use this file except in compliance with the License.
523b3eb3cSopenharmony_ci * You may obtain a copy of the License at
623b3eb3cSopenharmony_ci *
723b3eb3cSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
823b3eb3cSopenharmony_ci *
923b3eb3cSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1023b3eb3cSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1123b3eb3cSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1223b3eb3cSopenharmony_ci * See the License for the specific language governing permissions and
1323b3eb3cSopenharmony_ci * limitations under the License.
1423b3eb3cSopenharmony_ci */
1523b3eb3cSopenharmony_ci
1623b3eb3cSopenharmony_ci#include "base/log/frame_report.h"
1723b3eb3cSopenharmony_ci
1823b3eb3cSopenharmony_cinamespace OHOS::Ace {
1923b3eb3cSopenharmony_ciFrameReport& FrameReport::GetInstance()
2023b3eb3cSopenharmony_ci{
2123b3eb3cSopenharmony_ci    static FrameReport instance;
2223b3eb3cSopenharmony_ci    return instance;
2323b3eb3cSopenharmony_ci}
2423b3eb3cSopenharmony_ci
2523b3eb3cSopenharmony_ciFrameReport::FrameReport() {}
2623b3eb3cSopenharmony_ci
2723b3eb3cSopenharmony_ciFrameReport::~FrameReport() {}
2823b3eb3cSopenharmony_ci
2923b3eb3cSopenharmony_cibool FrameReport::LoadLibrary()
3023b3eb3cSopenharmony_ci{
3123b3eb3cSopenharmony_ci    frameSchedHandle_ = nullptr;
3223b3eb3cSopenharmony_ci    frameSchedSoLoaded_ = false;
3323b3eb3cSopenharmony_ci    enable_ = false;
3423b3eb3cSopenharmony_ci    return false;
3523b3eb3cSopenharmony_ci}
3623b3eb3cSopenharmony_ci
3723b3eb3cSopenharmony_civoid FrameReport::CloseLibrary() {}
3823b3eb3cSopenharmony_ci
3923b3eb3cSopenharmony_civoid* FrameReport::LoadSymbol(const char* symName)
4023b3eb3cSopenharmony_ci{
4123b3eb3cSopenharmony_ci    return nullptr;
4223b3eb3cSopenharmony_ci}
4323b3eb3cSopenharmony_ci
4423b3eb3cSopenharmony_civoid FrameReport::Init()
4523b3eb3cSopenharmony_ci{
4623b3eb3cSopenharmony_ci    frameInitFunc_ = nullptr;
4723b3eb3cSopenharmony_ci}
4823b3eb3cSopenharmony_ci
4923b3eb3cSopenharmony_ciint FrameReport::GetEnable()
5023b3eb3cSopenharmony_ci{
5123b3eb3cSopenharmony_ci    frameGetEnableFunc_ = nullptr;
5223b3eb3cSopenharmony_ci    return false;
5323b3eb3cSopenharmony_ci}
5423b3eb3cSopenharmony_ci
5523b3eb3cSopenharmony_ciint FrameReport::GetFrameReportEnable()
5623b3eb3cSopenharmony_ci{
5723b3eb3cSopenharmony_ci    return false;
5823b3eb3cSopenharmony_ci}
5923b3eb3cSopenharmony_ci
6023b3eb3cSopenharmony_civoid FrameReport::BeginFlushAnimation()
6123b3eb3cSopenharmony_ci{
6223b3eb3cSopenharmony_ci    beginFlushAnimationFunc_ = nullptr;
6323b3eb3cSopenharmony_ci}
6423b3eb3cSopenharmony_ci
6523b3eb3cSopenharmony_civoid FrameReport::EndFlushAnimation()
6623b3eb3cSopenharmony_ci{
6723b3eb3cSopenharmony_ci    endFlushAnimationFunc_ = nullptr;
6823b3eb3cSopenharmony_ci}
6923b3eb3cSopenharmony_ci
7023b3eb3cSopenharmony_civoid FrameReport::BeginFlushBuild()
7123b3eb3cSopenharmony_ci{
7223b3eb3cSopenharmony_ci    beginFlushBuildFunc_ = nullptr;
7323b3eb3cSopenharmony_ci}
7423b3eb3cSopenharmony_ci
7523b3eb3cSopenharmony_civoid FrameReport::EndFlushBuild()
7623b3eb3cSopenharmony_ci{
7723b3eb3cSopenharmony_ci    endFlushBuildFunc_ = nullptr;
7823b3eb3cSopenharmony_ci}
7923b3eb3cSopenharmony_ci
8023b3eb3cSopenharmony_civoid FrameReport::BeginFlushLayout()
8123b3eb3cSopenharmony_ci{
8223b3eb3cSopenharmony_ci    beginFlushLayoutFunc_ = nullptr;
8323b3eb3cSopenharmony_ci}
8423b3eb3cSopenharmony_ci
8523b3eb3cSopenharmony_civoid FrameReport::EndFlushLayout()
8623b3eb3cSopenharmony_ci{
8723b3eb3cSopenharmony_ci    endFlushLayoutFunc_ = nullptr;
8823b3eb3cSopenharmony_ci}
8923b3eb3cSopenharmony_ci
9023b3eb3cSopenharmony_civoid FrameReport::BeginFlushRender()
9123b3eb3cSopenharmony_ci{
9223b3eb3cSopenharmony_ci    beginFlushRenderFunc_ = nullptr;
9323b3eb3cSopenharmony_ci}
9423b3eb3cSopenharmony_ci
9523b3eb3cSopenharmony_civoid FrameReport::EndFlushRender()
9623b3eb3cSopenharmony_ci{
9723b3eb3cSopenharmony_ci    endFlushRenderFunc_ = nullptr;
9823b3eb3cSopenharmony_ci}
9923b3eb3cSopenharmony_ci
10023b3eb3cSopenharmony_civoid FrameReport::BeginFlushRenderFinish()
10123b3eb3cSopenharmony_ci{
10223b3eb3cSopenharmony_ci    beginFlushRenderFinishFunc_ = nullptr;
10323b3eb3cSopenharmony_ci}
10423b3eb3cSopenharmony_ci
10523b3eb3cSopenharmony_civoid FrameReport::EndFlushRenderFinish()
10623b3eb3cSopenharmony_ci{
10723b3eb3cSopenharmony_ci    endFlushRenderFinishFunc_ = nullptr;
10823b3eb3cSopenharmony_ci}
10923b3eb3cSopenharmony_ci
11023b3eb3cSopenharmony_civoid FrameReport::BeginProcessPostFlush()
11123b3eb3cSopenharmony_ci{
11223b3eb3cSopenharmony_ci    beginProcessPostFunc_ = nullptr;
11323b3eb3cSopenharmony_ci}
11423b3eb3cSopenharmony_ci
11523b3eb3cSopenharmony_civoid FrameReport::BeginListFling()
11623b3eb3cSopenharmony_ci{
11723b3eb3cSopenharmony_ci    beginListFlingFunc_ = nullptr;
11823b3eb3cSopenharmony_ci}
11923b3eb3cSopenharmony_ci
12023b3eb3cSopenharmony_civoid FrameReport::EndListFling()
12123b3eb3cSopenharmony_ci{
12223b3eb3cSopenharmony_ci    endListFlingFunc_ = nullptr;
12323b3eb3cSopenharmony_ci}
12423b3eb3cSopenharmony_ci
12523b3eb3cSopenharmony_civoid FrameReport::FlushBegin()
12623b3eb3cSopenharmony_ci{
12723b3eb3cSopenharmony_ci    flushBeginFunc_ = nullptr;
12823b3eb3cSopenharmony_ci}
12923b3eb3cSopenharmony_ci
13023b3eb3cSopenharmony_civoid FrameReport::FlushEnd()
13123b3eb3cSopenharmony_ci{
13223b3eb3cSopenharmony_ci    flushEndFunc_ = nullptr;
13323b3eb3cSopenharmony_ci}
13423b3eb3cSopenharmony_ci
13523b3eb3cSopenharmony_civoid FrameReport::SetFrameParam(int requestId, int load, int schedFrameNum, int value)
13623b3eb3cSopenharmony_ci{
13723b3eb3cSopenharmony_ci    setFrameParamFunc_ = nullptr;
13823b3eb3cSopenharmony_ci}
13923b3eb3cSopenharmony_ci
14023b3eb3cSopenharmony_civoid FrameReport::EnableSelfRender()
14123b3eb3cSopenharmony_ci{
14223b3eb3cSopenharmony_ci    enableSelfRenderFunc_ = nullptr;
14323b3eb3cSopenharmony_ci}
14423b3eb3cSopenharmony_ci
14523b3eb3cSopenharmony_civoid FrameReport::DisableSelfRender()
14623b3eb3cSopenharmony_ci{
14723b3eb3cSopenharmony_ci    disableSelfRenderFunc_ = nullptr;
14823b3eb3cSopenharmony_ci}
14923b3eb3cSopenharmony_ci} // namespace OHOS::Ace
150