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

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

Issue 6279009: Collect GL_EXTENSIONS string in GPUInfo and display it in about:gpu page.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/common/gpu_info.h ('k') | chrome/common/gpu_info_unittest.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) 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 #include "chrome/common/gpu_info.h" 5 #include "chrome/common/gpu_info.h"
6 6
7 GPUInfo::GPUInfo() 7 GPUInfo::GPUInfo()
8 : progress_(kUninitialized), 8 : progress_(kUninitialized),
9 vendor_id_(0), 9 vendor_id_(0),
10 device_id_(0), 10 device_id_(0),
11 driver_vendor_(""), 11 driver_vendor_(""),
12 driver_version_(""), 12 driver_version_(""),
13 pixel_shader_version_(0), 13 pixel_shader_version_(0),
14 vertex_shader_version_(0), 14 vertex_shader_version_(0),
15 gl_version_(0), 15 gl_version_(0),
16 gl_version_string_(""), 16 gl_version_string_(""),
17 gl_vendor_(""), 17 gl_vendor_(""),
18 gl_renderer_(""), 18 gl_renderer_(""),
19 gl_extensions_(""),
19 can_lose_context_(false) { 20 can_lose_context_(false) {
20 } 21 }
21 22
22 GPUInfo::Progress GPUInfo::progress() const { 23 GPUInfo::Progress GPUInfo::progress() const {
23 return progress_; 24 return progress_;
24 } 25 }
25 26
26 base::TimeDelta GPUInfo::initialization_time() const { 27 base::TimeDelta GPUInfo::initialization_time() const {
27 return initialization_time_; 28 return initialization_time_;
28 } 29 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 61 }
61 62
62 std::string GPUInfo::gl_vendor() const { 63 std::string GPUInfo::gl_vendor() const {
63 return gl_vendor_; 64 return gl_vendor_;
64 } 65 }
65 66
66 std::string GPUInfo::gl_renderer() const { 67 std::string GPUInfo::gl_renderer() const {
67 return gl_renderer_; 68 return gl_renderer_;
68 } 69 }
69 70
71 std::string GPUInfo::gl_extensions() const {
72 return gl_extensions_;
73 }
74
70 bool GPUInfo::can_lose_context() const { 75 bool GPUInfo::can_lose_context() const {
71 return can_lose_context_; 76 return can_lose_context_;
72 } 77 }
73 78
74 void GPUInfo::SetProgress(Progress progress) { 79 void GPUInfo::SetProgress(Progress progress) {
75 progress_ = progress; 80 progress_ = progress;
76 } 81 }
77 82
78 void GPUInfo::SetInitializationTime( 83 void GPUInfo::SetInitializationTime(
79 const base::TimeDelta& initialization_time) { 84 const base::TimeDelta& initialization_time) {
(...skipping 26 matching lines...) Expand all
106 } 111 }
107 112
108 void GPUInfo::SetGLVendor(const std::string& gl_vendor) { 113 void GPUInfo::SetGLVendor(const std::string& gl_vendor) {
109 gl_vendor_ = gl_vendor; 114 gl_vendor_ = gl_vendor;
110 } 115 }
111 116
112 void GPUInfo::SetGLRenderer(const std::string& gl_renderer) { 117 void GPUInfo::SetGLRenderer(const std::string& gl_renderer) {
113 gl_renderer_ = gl_renderer; 118 gl_renderer_ = gl_renderer;
114 } 119 }
115 120
121 void GPUInfo::SetGLExtensions(const std::string& gl_extensions) {
122 gl_extensions_ = gl_extensions;
123 }
124
116 void GPUInfo::SetCanLoseContext(bool can_lose_context) { 125 void GPUInfo::SetCanLoseContext(bool can_lose_context) {
117 can_lose_context_ = can_lose_context; 126 can_lose_context_ = can_lose_context;
118 } 127 }
119 128
120 #if defined(OS_WIN) 129 #if defined(OS_WIN)
121 const DxDiagNode& GPUInfo::dx_diagnostics() const { 130 const DxDiagNode& GPUInfo::dx_diagnostics() const {
122 return dx_diagnostics_; 131 return dx_diagnostics_;
123 } 132 }
124 133
125 void GPUInfo::SetDxDiagnostics(const DxDiagNode& dx_diagnostics) { 134 void GPUInfo::SetDxDiagnostics(const DxDiagNode& dx_diagnostics) {
126 dx_diagnostics_ = dx_diagnostics; 135 dx_diagnostics_ = dx_diagnostics;
127 } 136 }
128 #endif 137 #endif
OLDNEW
« no previous file with comments | « chrome/common/gpu_info.h ('k') | chrome/common/gpu_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698