feat: getGPUInfo not longer supports 'complete' on macOS

See 1208362
This commit is contained in:
Cheng Zhao 2018-10-08 13:06:50 +09:00 committed by Jeremy Apthorp
parent e28eeb0c2e
commit a6256c672a
5 changed files with 14 additions and 8 deletions

View file

@ -1173,7 +1173,7 @@ v8::Local<v8::Promise> App::GetGPUInfo(v8::Isolate* isolate,
auto* const info_mgr = GPUInfoManager::GetInstance();
if (info_type == "complete") {
#if defined(OS_MACOSX) || defined(OS_WIN)
#if defined(OS_WIN)
info_mgr->FetchCompleteInfo(promise);
#else
info_mgr->FetchBasicInfo(promise);