You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
576 B

/*
* 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<HwGalleryIapiAdapter> sInstance;
static std::once_flag sOnceFlag;
std::call_once(sOnceFlag, [] { sInstance.reset(new HwGalleryIapiComImpl()); });
return sInstance.get();
}
} // namespace android