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

Unified Diff: chrome/browser/gpu_process_host_ui_shim.cc

Issue 5698009: Wait for the GPU info to be collected. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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
Index: chrome/browser/gpu_process_host_ui_shim.cc
===================================================================
--- chrome/browser/gpu_process_host_ui_shim.cc (revision 69024)
+++ chrome/browser/gpu_process_host_ui_shim.cc (working copy)
@@ -104,6 +104,12 @@
void GpuProcessHostUIShim::OnGraphicsInfoCollected(const GPUInfo& gpu_info) {
gpu_info_ = gpu_info;
child_process_logging::SetGpuInfo(gpu_info);
+
+ // Used only in testing.
+ if (gpu_info_collected_callback_.get()) {
+ gpu_info_collected_callback_->Run();
+ gpu_info_collected_callback_.reset();
apatrick_chromium 2010/12/13 21:16:35 I think the caller of set_gpu_info_collected_callb
kkania 2010/12/13 22:12:57 Done.
+ }
}
void GpuProcessHostUIShim::OnScheduleComposite(int renderer_id,

Powered by Google App Engine
This is Rietveld 408576698