25 lines
544 B
C++
25 lines
544 B
C++
#include "DisplayHardware/PowerAdvisor.h"
|
|
#include "DisplayHardware/PowerHalWrapper.h"
|
|
|
|
namespace android {
|
|
namespace Hwc2 {
|
|
namespace impl {
|
|
|
|
#ifdef MTK_SF_HINT_DISPLAY_INFO
|
|
void PowerAdvisor::hintMultiDisplay(const int& enable, const int& fps)
|
|
{
|
|
PowerHalWrapper::getInstance().hintMultiDisplay(enable, fps);
|
|
}
|
|
#endif
|
|
|
|
#ifdef MTK_SF_HINT_LOW_POWER
|
|
void PowerAdvisor::hintSFLowPower(bool enabled)
|
|
{
|
|
PowerHalWrapper::getInstance().hintSFLowPower(enabled ? 1 : 0);
|
|
}
|
|
#endif
|
|
|
|
} // namespace impl
|
|
} // namespace Hwc2
|
|
} // namespace android
|