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

Unified Diff: gpu/config/gpu_info_collector_x11.cc

Issue 2725873007: gpu/config: Use angle::GetSystemInfo on Linux (Closed)
Patch Set: "Fix" gn check Created 3 years, 9 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 | « gpu/config/gpu_info_collector_ozone.cc ('k') | 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_x11.cc
diff --git a/gpu/config/gpu_info_collector_x11.cc b/gpu/config/gpu_info_collector_x11.cc
deleted file mode 100644
index 38fa72f74dc82b18a573c12810e08ae18c7c50b8..0000000000000000000000000000000000000000
--- a/gpu/config/gpu_info_collector_x11.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <X11/Xlib.h>
-
-#include "base/logging.h"
-#include "gpu/config/gpu_info_collector_linux.h"
-#include "third_party/libXNVCtrl/NVCtrl.h"
-#include "third_party/libXNVCtrl/NVCtrlLib.h"
-#include "ui/gfx/x/x11_types.h"
-
-namespace gpu {
-
-// Use NVCtrl extention to query NV driver version.
-// Return empty string on failing.
-std::string CollectDriverVersionNVidia() {
- Display* display = gfx::GetXDisplay();
- if (!display) {
- LOG(ERROR) << "XOpenDisplay failed.";
- return std::string();
- }
- int event_base = 0, error_base = 0;
- if (!XNVCTRLQueryExtension(display, &event_base, &error_base)) {
- VLOG(1) << "NVCtrl extension does not exist.";
- return std::string();
- }
- int screen_count = ScreenCount(display);
- for (int screen = 0; screen < screen_count; ++screen) {
- char* buffer = NULL;
- if (XNVCTRLIsNvScreen(display, screen) &&
- XNVCTRLQueryStringAttribute(display, screen, 0,
- NV_CTRL_STRING_NVIDIA_DRIVER_VERSION,
- &buffer)) {
- std::string driver_version(buffer);
- XFree(buffer);
- return driver_version;
- }
- }
- return std::string();
-}
-
-} // namespace gpu
« no previous file with comments | « gpu/config/gpu_info_collector_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698