Chromium Code Reviews| 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, |