| Index: ui/gl/gl_surface_egl.cc
|
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
|
| index e8e301a957f6dd096a222b27a21f651b594d2612..83f328eec618ec3334a000b189a6a6b76b056eaf 100644
|
| --- a/ui/gl/gl_surface_egl.cc
|
| +++ b/ui/gl/gl_surface_egl.cc
|
| @@ -18,6 +18,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "build/build_config.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
| #include "ui/gl/egl_util.h"
|
| #include "ui/gl/gl_context.h"
|
| #include "ui/gl/gl_implementation.h"
|
| @@ -320,6 +321,12 @@ NativeViewGLSurfaceEGL::NativeViewGLSurfaceEGL(EGLNativeWindowType window)
|
| if (window)
|
| ANativeWindow_acquire(window);
|
| #endif
|
| +
|
| +#if defined(OS_WIN)
|
| + RECT windowRect;
|
| + if (GetClientRect(window_, &windowRect))
|
| + size_ = gfx::Rect(windowRect).size();
|
| +#endif
|
| }
|
|
|
| bool NativeViewGLSurfaceEGL::Initialize() {
|
|
|