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

Unified Diff: chrome/browser/dom_ui/gpu_internals_ui.cc

Issue 6364013: Defered collect DirectX diagnostics until they are needed for about:gpu.... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/gpu_internals_ui.cc
===================================================================
--- chrome/browser/dom_ui/gpu_internals_ui.cc (revision 72672)
+++ chrome/browser/dom_ui/gpu_internals_ui.cc (working copy)
@@ -301,13 +301,13 @@
DictionaryValue* info = new DictionaryValue();
info->Set("basic_info", basic_info);
- if (gpu_info.progress() == GPUInfo::kPartial) {
- info->SetString("progress", "partial");
+ if (gpu_info.level() == GPUInfo::kPartial) {
+ info->SetString("level", "partial");
} else {
- info->SetString("progress", "complete");
+ info->SetString("level", "complete");
}
#if defined(OS_WIN)
- if (gpu_info.progress() == GPUInfo::kComplete) {
+ if (gpu_info.level() == GPUInfo::kComplete) {
ListValue* dx_info = DxDiagNodeToList(gpu_info.dx_diagnostics());
info->Set("diagnostics", dx_info);
}
@@ -323,11 +323,12 @@
GPUInfo gpu_info = GpuProcessHostUIShim::GetInstance()->gpu_info();
std::string html;
- if (gpu_info.progress() != GPUInfo::kComplete) {
- GpuProcessHostUIShim::GetInstance()->CollectGraphicsInfoAsynchronously();
+ if (gpu_info.level() != GPUInfo::kComplete) {
+ GpuProcessHostUIShim::GetInstance()->CollectGraphicsInfoAsynchronously(
+ GPUInfo::kComplete);
}
- if (gpu_info.progress() != GPUInfo::kUninitialized) {
+ if (gpu_info.level() != GPUInfo::kUninitialized) {
return GpuInfoToDict(gpu_info);
} else {
return NULL;
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698