Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: gpu/config/gpu_info_collector_mac.mm

Issue 2443783002: Add suppression for deprecated CGDisplayIOServicePort call (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector_mac.mm
diff --git a/gpu/config/gpu_info_collector_mac.mm b/gpu/config/gpu_info_collector_mac.mm
index 9ba1daa4c6c46339cd9ec85ebc68ceef063dc70a..7fecec0ec99c7bd0293a442094229633c28deade 100644
--- a/gpu/config/gpu_info_collector_mac.mm
+++ b/gpu/config/gpu_info_collector_mac.mm
@@ -54,6 +54,12 @@ UInt32 GetEntryProperty(io_registry_entry_t entry, CFStringRef property_name) {
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.
GPUInfo::GPUDevice GetActiveGPU() {
GPUInfo::GPUDevice gpu;
@@ -63,6 +69,8 @@ UInt32 GetEntryProperty(io_registry_entry_t entry, CFStringRef property_name) {
return gpu;
}
+#pragma clang diagnostic pop
+
// Scan IO registry for PCI video cards.
CollectInfoResult CollectPCIVideoCardInfo(GPUInfo* gpu_info) {
DCHECK(gpu_info);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698