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