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

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

Issue 9965096: Revert 130298 - Revert 130258 - Make it possible to blacklist gpu's based on the Windows experience… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 years, 8 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_info_collector_win.cc ('k') | content/public/common/gpu_performance_stats.h » ('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.
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/public/common/dx_diag_node.h" 18 #include "content/public/common/dx_diag_node.h"
19 #include "content/public/common/gpu_performance_stats.h"
19 20
20 namespace content { 21 namespace content {
21 22
22 struct CONTENT_EXPORT GPUInfo { 23 struct CONTENT_EXPORT GPUInfo {
23 GPUInfo(); 24 GPUInfo();
24 ~GPUInfo(); 25 ~GPUInfo();
25 26
26 // Whether more GPUInfo fields might be collected in the future. 27 // Whether more GPUInfo fields might be collected in the future.
27 bool finalized; 28 bool finalized;
28 29
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // The GL_RENDERER string. "" if we are not using OpenGL. 69 // The GL_RENDERER string. "" if we are not using OpenGL.
69 std::string gl_renderer; 70 std::string gl_renderer;
70 71
71 // The GL_EXTENSIONS string. "" if we are not using OpenGL. 72 // The GL_EXTENSIONS string. "" if we are not using OpenGL.
72 std::string gl_extensions; 73 std::string gl_extensions;
73 74
74 // 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
75 // semantics are available. 76 // semantics are available.
76 bool can_lose_context; 77 bool can_lose_context;
77 78
79 // By default all values are 0.
80 GpuPerformanceStats performance_stats;
81
78 #if defined(OS_WIN) 82 #if defined(OS_WIN)
79 // The information returned by the DirectX Diagnostics Tool. 83 // The information returned by the DirectX Diagnostics Tool.
80 DxDiagNode dx_diagnostics; 84 DxDiagNode dx_diagnostics;
81 #endif 85 #endif
82 }; 86 };
83 87
84 } // namespace content 88 } // namespace content
85 89
86 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_ 90 #endif // CONTENT_PUBLIC_COMMON_GPU_INFO_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_info_collector_win.cc ('k') | content/public/common/gpu_performance_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698