diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 23:06:49 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 23:06:49 +0000 |
commit | dd576af62d44b9aaaefedbfe78822f6c83e4f310 (patch) | |
tree | 204f6827182bb0ec4c37b8bf93ef0a96879fc43a /chrome/gpu | |
parent | 1cea23942dddeeb854a0f8120812e87b5c962d34 (diff) | |
download | chromium_src-dd576af62d44b9aaaefedbfe78822f6c83e4f310.zip chromium_src-dd576af62d44b9aaaefedbfe78822f6c83e4f310.tar.gz chromium_src-dd576af62d44b9aaaefedbfe78822f6c83e4f310.tar.bz2 |
Add about:gpuhang
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/3447023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60373 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/gpu')
-rw-r--r-- | chrome/gpu/gpu_thread.cc | 7 | ||||
-rw-r--r-- | chrome/gpu/gpu_thread.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/gpu/gpu_thread.cc b/chrome/gpu/gpu_thread.cc index 97cb5d1..cb2a89b 100644 --- a/chrome/gpu/gpu_thread.cc +++ b/chrome/gpu/gpu_thread.cc @@ -91,6 +91,8 @@ void GpuThread::OnControlMessageReceived(const IPC::Message& msg) { OnCollectGraphicsInfo) IPC_MESSAGE_HANDLER(GpuMsg_Crash, OnCrash) + IPC_MESSAGE_HANDLER(GpuMsg_Hang, + OnHang) IPC_END_MESSAGE_MAP_EX() } @@ -168,3 +170,8 @@ void GpuThread::OnCrash() { volatile int* it_s_the_end_of_the_world_as_we_know_it = NULL; *it_s_the_end_of_the_world_as_we_know_it = 0xdead; } + +void GpuThread::OnHang() { + for (;;) + PlatformThread::Sleep(1000); +} diff --git a/chrome/gpu/gpu_thread.h b/chrome/gpu/gpu_thread.h index 519b092..b896360 100644 --- a/chrome/gpu/gpu_thread.h +++ b/chrome/gpu/gpu_thread.h @@ -43,6 +43,7 @@ class GpuThread : public ChildThread { void OnSynchronize(); void OnCollectGraphicsInfo(); void OnCrash(); + void OnHang(); void OnNewRenderWidgetHostView(GpuNativeWindowHandle parent_window, int32 routing_id); |