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

Side by Side Diff: content/public/common/gpu_info.h

Issue 9844005: Disable GPU features if /dev/nvidiactl is inaccessible (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/common/gpu_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_GPU_INFO_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_GPU_INFO_H_
6 #define CONTENT_PUBLIC_COMMON_GPU_INFO_H_ 6 #define CONTENT_PUBLIC_COMMON_GPU_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 // Provides access to the GPU information for the system 9 // Provides access to the GPU information for the system
10 // on which chrome is currently running. 10 // on which chrome is currently running.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // The GL_RENDERER string. "" if we are not using OpenGL. 69 // The GL_RENDERER string. "" if we are not using OpenGL.
70 std::string gl_renderer; 70 std::string gl_renderer;
71 71
72 // The GL_EXTENSIONS string. "" if we are not using OpenGL. 72 // The GL_EXTENSIONS string. "" if we are not using OpenGL.
73 std::string gl_extensions; 73 std::string gl_extensions;
74 74
75 // The device semantics, i.e. whether the Vista and Windows 7 specific 75 // The device semantics, i.e. whether the Vista and Windows 7 specific
76 // semantics are available. 76 // semantics are available.
77 bool can_lose_context; 77 bool can_lose_context;
78 78
79 // Whether gpu or driver is accessible.
80 bool gpu_accessible;
81
79 // By default all values are 0. 82 // By default all values are 0.
80 GpuPerformanceStats performance_stats; 83 GpuPerformanceStats performance_stats;
81 84
82 bool software_rendering; 85 bool software_rendering;
83 86
84 #if defined(OS_WIN) 87 #if defined(OS_WIN)
85 // The information returned by the DirectX Diagnostics Tool. 88 // The information returned by the DirectX Diagnostics Tool.
86 DxDiagNode dx_diagnostics; 89 DxDiagNode dx_diagnostics;
87 #endif 90 #endif
88 }; 91 };
89 92
90 } // namespace content 93 } // namespace content
91 94
92 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ 95 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/public/common/gpu_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698