Commit 2576f07c by apatrick@chromium.org

Revert r1829: Fix failure to recover from GPU hang.

It's causing trouble with Aura. Locking the screen seems to generate the display mode change device status and Aura cannot recover. http://crbug.com/178148 Review URL: https://codereview.appspot.com/7398052 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1834 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 8390870a
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1833 #define BUILD_REVISION 1834
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -910,9 +910,7 @@ bool Display::testDeviceLost() ...@@ -910,9 +910,7 @@ bool Display::testDeviceLost()
{ {
if (mDeviceEx) if (mDeviceEx)
{ {
// Sometimes CheckDeviceState returns S_PRESENT_MODE_CHANGED when the GPU has hung. return FAILED(mDeviceEx->CheckDeviceState(NULL));
HRESULT result = mDeviceEx->CheckDeviceState(NULL);
return FAILED(result) || result == S_PRESENT_MODE_CHANGED;
} }
else if (mDevice) else if (mDevice)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment