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

Side by Side Diff: chrome/browser/ui/webui/gpu_internals_ui.cc

Issue 8430001: Add "Graphics backend" line to chrome://gpu-internals page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/browser/resources/gpu_internals/info_view.js ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/ui/webui/gpu_internals_ui.h" 5 #include "chrome/browser/ui/webui/gpu_internals_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 IDS_ABOUT_VERSION_UNOFFICIAL)); 203 IDS_ABOUT_VERSION_UNOFFICIAL));
204 204
205 dict->SetString("command_line", 205 dict->SetString("command_line",
206 CommandLine::ForCurrentProcess()->GetCommandLineString()); 206 CommandLine::ForCurrentProcess()->GetCommandLineString());
207 } 207 }
208 208
209 dict->SetString("operating_system", 209 dict->SetString("operating_system",
210 base::SysInfo::OperatingSystemName() + " " + 210 base::SysInfo::OperatingSystemName() + " " +
211 base::SysInfo::OperatingSystemVersion()); 211 base::SysInfo::OperatingSystemVersion());
212 dict->SetString("angle_revision", base::UintToString(BUILD_REVISION)); 212 dict->SetString("angle_revision", base::UintToString(BUILD_REVISION));
213 #if defined(USE_SKIA)
214 dict->SetString("graphics_backend", "Skia");
215 #else
216 dict->SetString("graphics_backend", "Core Graphics");
217 #endif
213 dict->SetString("blacklist_version", 218 dict->SetString("blacklist_version",
214 GpuDataManager::GetInstance()->GetBlacklistVersion()); 219 GpuDataManager::GetInstance()->GetBlacklistVersion());
215 220
216 return dict; 221 return dict;
217 } 222 }
218 223
219 Value* GpuMessageHandler::OnRequestLogMessages(const ListValue*) { 224 Value* GpuMessageHandler::OnRequestLogMessages(const ListValue*) {
220 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 225 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
221 226
222 return gpu_data_manager_->log_messages().DeepCopy(); 227 return gpu_data_manager_->log_messages().DeepCopy();
(...skipping 23 matching lines...) Expand all
246 // 251 //
247 //////////////////////////////////////////////////////////////////////////////// 252 ////////////////////////////////////////////////////////////////////////////////
248 253
249 GpuInternalsUI::GpuInternalsUI(TabContents* contents) : ChromeWebUI(contents) { 254 GpuInternalsUI::GpuInternalsUI(TabContents* contents) : ChromeWebUI(contents) {
250 AddMessageHandler((new GpuMessageHandler())->Attach(this)); 255 AddMessageHandler((new GpuMessageHandler())->Attach(this));
251 256
252 // Set up the chrome://gpu-internals/ source. 257 // Set up the chrome://gpu-internals/ source.
253 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 258 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
254 profile->GetChromeURLDataManager()->AddDataSource(CreateGpuHTMLSource()); 259 profile->GetChromeURLDataManager()->AddDataSource(CreateGpuHTMLSource());
255 } 260 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/gpu_internals/info_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698