1 /*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include "renderthread/HintSessionWrapper.h"
18
19 namespace android {
20 namespace uirenderer {
21 namespace renderthread {
22
init()23 void HintSessionWrapper::HintSessionBinding::init() {}
24
HintSessionWrapper(pid_t uiThreadId,pid_t renderThreadId)25 HintSessionWrapper::HintSessionWrapper(pid_t uiThreadId, pid_t renderThreadId)
26 : mUiThreadId(uiThreadId)
27 , mRenderThreadId(renderThreadId)
28 , mBinding(std::make_shared<HintSessionBinding>()) {}
29
~HintSessionWrapper()30 HintSessionWrapper::~HintSessionWrapper() {}
31
destroy()32 void HintSessionWrapper::destroy() {}
33
init()34 bool HintSessionWrapper::init() {
35 return false;
36 }
37
updateTargetWorkDuration(long targetWorkDurationNanos)38 void HintSessionWrapper::updateTargetWorkDuration(long targetWorkDurationNanos) {}
39
reportActualWorkDuration(long actualDurationNanos)40 void HintSessionWrapper::reportActualWorkDuration(long actualDurationNanos) {}
41
sendLoadResetHint()42 void HintSessionWrapper::sendLoadResetHint() {}
43
sendLoadIncreaseHint()44 void HintSessionWrapper::sendLoadIncreaseHint() {}
45
alive()46 bool HintSessionWrapper::alive() {
47 return false;
48 }
49
getLastUpdate()50 nsecs_t HintSessionWrapper::getLastUpdate() {
51 return -1;
52 }
53
delayedDestroy(RenderThread & rt,nsecs_t delay,std::shared_ptr<HintSessionWrapper> wrapperPtr)54 void HintSessionWrapper::delayedDestroy(RenderThread& rt, nsecs_t delay,
55 std::shared_ptr<HintSessionWrapper> wrapperPtr) {}
56
setActiveFunctorThreads(std::vector<pid_t> threadIds)57 void HintSessionWrapper::setActiveFunctorThreads(std::vector<pid_t> threadIds) {}
58
59 } /* namespace renderthread */
60 } /* namespace uirenderer */
61 } /* namespace android */
62