diff options
author | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 20:27:13 +0000 |
---|---|---|
committer | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 20:27:13 +0000 |
commit | cadc050d692f83c44da8a386dc37ea57490a9cc9 (patch) | |
tree | a104ac3dcd7a937cc89d5842ab3d8d6ba111c598 /chrome/common/gpu_messages_internal.h | |
parent | c9a9f64a360ea100e2dbd08859e6242e54b98d49 (diff) | |
download | chromium_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/common/gpu_messages_internal.h')
-rw-r--r-- | chrome/common/gpu_messages_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/gpu_messages_internal.h b/chrome/common/gpu_messages_internal.h index 7db08d3..c1a02be 100644 --- a/chrome/common/gpu_messages_internal.h +++ b/chrome/common/gpu_messages_internal.h @@ -46,6 +46,10 @@ IPC_BEGIN_MESSAGES(Gpu) GpuNativeWindowHandle, /* parent window */ int32 /* view_id */) + // Tells the GPU process to create a context for collecting graphics card + // information. + IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) + // Creates a new backing store. IPC_MESSAGE_ROUTED2(GpuMsg_NewBackingStore, int32, /* backing_store_routing_id */ @@ -106,6 +110,10 @@ IPC_BEGIN_MESSAGES(GpuHost) // Response to a GpuMsg_Synchronize message. IPC_MESSAGE_CONTROL0(GpuHostMsg_SynchronizeReply) + // Response to a GpuMsg_CollectGraphicsInfo. + IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, + GPUInfo /* GPU logging stats */) + #if defined(OS_LINUX) // Get the XID for a view ID. IPC_SYNC_MESSAGE_CONTROL1_1(GpuHostMsg_GetViewXID, |