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

Side by Side Diff: chrome/common/gpu_info.h

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2010 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 CHROME_COMMON_GPU_INFO_H__ 5 #ifndef CHROME_COMMON_GPU_INFO_H__
6 #define CHROME_COMMON_GPU_INFO_H__ 6 #define CHROME_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/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "chrome/common/dx_diag_node.h" 18 #include "chrome/common/dx_diag_node.h"
19 19
20 class GPUInfo { 20 class GPUInfo {
21 public: 21 public:
22 GPUInfo();
23 ~GPUInfo() {}
24
25 enum Progress { 22 enum Progress {
26 kUninitialized, 23 kUninitialized,
27 kPartial, 24 kPartial,
28 kComplete, 25 kComplete,
29 }; 26 };
30 27
28 GPUInfo();
29 ~GPUInfo();
30
31 // Returns whether this GPUInfo has been partially or fully initialized with 31 // Returns whether this GPUInfo has been partially or fully initialized with
32 // information. 32 // information.
33 Progress progress() const; 33 Progress progress() const;
34 34
35 // The amount of time taken to get from the process starting to the message 35 // The amount of time taken to get from the process starting to the message
36 // loop being pumped. 36 // loop being pumped.
37 base::TimeDelta initialization_time() const; 37 base::TimeDelta initialization_time() const;
38 38
39 // Return the DWORD (uint32) representing the graphics card vendor id. 39 // Return the DWORD (uint32) representing the graphics card vendor id.
40 uint32 vendor_id() const; 40 uint32 vendor_id() const;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 std::string gl_renderer_; 133 std::string gl_renderer_;
134 std::string gl_extensions_; 134 std::string gl_extensions_;
135 bool can_lose_context_; 135 bool can_lose_context_;
136 136
137 #if defined(OS_WIN) 137 #if defined(OS_WIN)
138 DxDiagNode dx_diagnostics_; 138 DxDiagNode dx_diagnostics_;
139 #endif 139 #endif
140 }; 140 };
141 141
142 #endif // CHROME_COMMON_GPU_INFO_H__ 142 #endif // CHROME_COMMON_GPU_INFO_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698