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

Unified Diff: content/public/common/gpu_info.h

Issue 15385003: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | « content/public/common/gpu_feature_type.h ('k') | content/public/common/gpu_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/gpu_info.h
===================================================================
--- content/public/common/gpu_info.h (revision 201163)
+++ content/public/common/gpu_info.h (working copy)
@@ -1,130 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CONTENT_PUBLIC_COMMON_GPU_INFO_H_
-#define CONTENT_PUBLIC_COMMON_GPU_INFO_H_
-
-// Provides access to the GPU information for the system
-// on which chrome is currently running.
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/time.h"
-#include "base/version.h"
-#include "build/build_config.h"
-#include "content/common/content_export.h"
-#include "content/public/common/dx_diag_node.h"
-#include "content/public/common/gpu_performance_stats.h"
-
-namespace content {
-
-struct CONTENT_EXPORT GPUInfo {
- struct CONTENT_EXPORT GPUDevice {
- GPUDevice();
- ~GPUDevice();
-
- // The DWORD (uint32) representing the graphics card vendor id.
- uint32 vendor_id;
-
- // The DWORD (uint32) representing the graphics card device id.
- // Device ids are unique to vendor, not to one another.
- uint32 device_id;
-
- // The strings that describe the GPU.
- // In Linux these strings are obtained through libpci.
- // In Win/MacOSX, these two strings are not filled at the moment.
- std::string vendor_string;
- std::string device_string;
- };
-
- GPUInfo();
- ~GPUInfo();
-
- // Whether more GPUInfo fields might be collected in the future.
- bool finalized;
-
- // The amount of time taken to get from the process starting to the message
- // loop being pumped.
- base::TimeDelta initialization_time;
-
- // Computer has NVIDIA Optimus
- bool optimus;
-
- // Computer has AMD Dynamic Switchable Graphics
- bool amd_switchable;
-
- // Lenovo dCute is installed. http://crbug.com/181665.
- bool lenovo_dcute;
-
- // Version of DisplayLink driver installed. Zero if not installed.
- // http://crbug.com/177611.
- Version display_link_version;
-
- // Primary GPU, for exmaple, the discrete GPU in a dual GPU machine.
- GPUDevice gpu;
-
- // Secondary GPUs, for example, the integrated GPU in a dual GPU machine.
- std::vector<GPUDevice> secondary_gpus;
-
- // The vendor of the graphics driver currently installed.
- std::string driver_vendor;
-
- // The version of the graphics driver currently installed.
- std::string driver_version;
-
- // The date of the graphics driver currently installed.
- std::string driver_date;
-
- // The version of the pixel/fragment shader used by the gpu.
- std::string pixel_shader_version;
-
- // The version of the vertex shader used by the gpu.
- std::string vertex_shader_version;
-
- // The machine model identifier with format "name major.minor".
- // Name should not contain any whitespaces.
- std::string machine_model;
-
- // The version of OpenGL we are using.
- // TODO(zmo): should be able to tell if it's GL or GLES.
- std::string gl_version;
-
- // The GL_VERSION string. "" if we are not using OpenGL.
- std::string gl_version_string;
-
- // The GL_VENDOR string. "" if we are not using OpenGL.
- std::string gl_vendor;
-
- // The GL_RENDERER string. "" if we are not using OpenGL.
- std::string gl_renderer;
-
- // The GL_EXTENSIONS string. "" if we are not using OpenGL.
- std::string gl_extensions;
-
- // The device semantics, i.e. whether the Vista and Windows 7 specific
- // semantics are available.
- bool can_lose_context;
-
- // Whether gpu or driver is accessible.
- bool gpu_accessible;
-
- // By default all values are 0.
- GpuPerformanceStats performance_stats;
-
- bool software_rendering;
-
- // Whether the gpu process is running in a sandbox.
- bool sandboxed;
-
-#if defined(OS_WIN)
- // The information returned by the DirectX Diagnostics Tool.
- DxDiagNode dx_diagnostics;
-#endif
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_
« no previous file with comments | « content/public/common/gpu_feature_type.h ('k') | content/public/common/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698