Chromium Code Reviews| Index: app/gfx/gl/gl_context_egl.cc |
| =================================================================== |
| --- app/gfx/gl/gl_context_egl.cc (revision 61564) |
| +++ app/gfx/gl/gl_context_egl.cc (working copy) |
| @@ -179,7 +179,11 @@ |
| gfx::Size NativeViewEGLContext::GetSize() { |
| #if defined(OS_WIN) |
| RECT rect; |
| - CHECK(GetClientRect(static_cast<HWND>(window_), &rect)); |
| + if (!GetClientRect(static_cast<HWND>(window_), &rect)) { |
| + DCHECK(false) << "GetClientRect failed."; |
|
Ken Russell (switch to Gerrit)
2010/10/06 17:53:49
Given this fix, do you still want to assert in deb
|
| + return gfx::Size(); |
| + } |
| + |
| return gfx::Size(rect.right - rect.left, rect.bottom - rect.top); |
| #else |
| // TODO(piman): This doesn't work correctly on Windows yet, the size doesn't |