summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gpu_process_host.h
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 20:27:13 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 20:27:13 +0000
commitcadc050d692f83c44da8a386dc37ea57490a9cc9 (patch)
treea104ac3dcd7a937cc89d5842ab3d8d6ba111c598 /chrome/browser/gpu_process_host.h
parentc9a9f64a360ea100e2dbd08859e6242e54b98d49 (diff)
downloadchromium_src-cadc050d692f83c44da8a386dc37ea57490a9cc9.zip
chromium_src-cadc050d692f83c44da8a386dc37ea57490a9cc9.tar.gz
chromium_src-cadc050d692f83c44da8a386dc37ea57490a9cc9.tar.bz2
Updating the about:gpu to start a webgl context if one does not exist so that some gpu_info will actually exist. It does this by refreshing the page every 5 seconds until a context does exist, if necessary.
We also looked into other methods: - synchronous call to create context, but that will hang if there are issues creating a context - a call back, but that will also hang until we have a gpu context - display no data and rely on the user to refresh which is somewhat unintuitive to the user The method in this CL seemed to be the least annoying method of doing this which didn't cause the browser to hang. BUG=none TEST=visual Review URL: http://codereview.chromium.org/3348007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59141 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gpu_process_host.h')
-rw-r--r--chrome/browser/gpu_process_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/gpu_process_host.h b/chrome/browser/gpu_process_host.h
index b1b1b75..77e825b 100644
--- a/chrome/browser/gpu_process_host.h
+++ b/chrome/browser/gpu_process_host.h
@@ -86,6 +86,7 @@ class GpuProcessHost : public BrowserChildProcessHost {
void OnChannelEstablished(const IPC::ChannelHandle& channel_handle,
const GPUInfo& gpu_info);
void OnSynchronizeReply();
+ void OnGraphicsInfoCollected(const GPUInfo& gpu_info);
#if defined(OS_LINUX)
void OnGetViewXID(gfx::NativeViewId id, unsigned long* xid);
#elif defined(OS_MACOSX)