Commit 5bbf3c63 authored by ccameron's avatar ccameron Committed by Commit bot

Add suppression for deprecated CGDisplayIOServicePort call

This has no obviously correct replacement

TBR=zmo
BUG=650837
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://chromiumcodereview.appspot.com/2443783002
Cr-Commit-Position: refs/heads/master@{#426956}
parent a08ca75a
...@@ -54,6 +54,12 @@ UInt32 GetEntryProperty(io_registry_entry_t entry, CFStringRef property_name) { ...@@ -54,6 +54,12 @@ UInt32 GetEntryProperty(io_registry_entry_t entry, CFStringRef property_name) {
return value; return value;
} }
// CGDisplayIOServicePort is deprecated as of macOS 10.9, but has no
// replacement.
// https://crbug.com/650837
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// Find the info of the current GPU. // Find the info of the current GPU.
GPUInfo::GPUDevice GetActiveGPU() { GPUInfo::GPUDevice GetActiveGPU() {
GPUInfo::GPUDevice gpu; GPUInfo::GPUDevice gpu;
...@@ -63,6 +69,8 @@ GPUInfo::GPUDevice GetActiveGPU() { ...@@ -63,6 +69,8 @@ GPUInfo::GPUDevice GetActiveGPU() {
return gpu; return gpu;
} }
#pragma clang diagnostic pop
// Scan IO registry for PCI video cards. // Scan IO registry for PCI video cards.
CollectInfoResult CollectPCIVideoCardInfo(GPUInfo* gpu_info) { CollectInfoResult CollectPCIVideoCardInfo(GPUInfo* gpu_info) {
DCHECK(gpu_info); DCHECK(gpu_info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment