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.
18 lines
580 B
18 lines
580 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 "HwGraphicsIapiAdapter.h"
|
|
#include "HwGraphicsIapiComImpl.h"
|
|
|
|
namespace android {
|
|
HwGraphicsIapiAdapter* HwGraphicsIapiAdapter::GetInstance()
|
|
{
|
|
static std::unique_ptr<HwGraphicsIapiAdapter> sInstance;
|
|
static std::once_flag sOnceFlag;
|
|
std::call_once(sOnceFlag, [] { sInstance.reset(new HwGraphicsIapiComImpl()); });
|
|
return sInstance.get();
|
|
}
|
|
} // namespace android
|