/* * Copyright (c) Hisilicon Technologies Co., Ltd.. 2016-2020. All rights reserved. * Description: Support private hwgraphics hidl interface * Author: Hisilicon * Created: 2016.11.29 */ #include "HwGraphicsIapiAdapter.h" #include "HwGraphicsIapiComImpl.h" namespace android { HwGraphicsIapiAdapter* HwGraphicsIapiAdapter::GetInstance() { static std::unique_ptr sInstance; static std::once_flag sOnceFlag; std::call_once(sOnceFlag, [] { sInstance.reset(new HwGraphicsIapiComImpl()); }); return sInstance.get(); } } // namespace android