diff options
author | sievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-17 04:34:56 +0000 |
---|---|---|
committer | sievers@chromium.org <sievers@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-17 04:34:56 +0000 |
commit | e21c547e3d5f9f502836f19c7c69075f70813f27 (patch) | |
tree | 108ff15b01bb4e31e6a7390efbf178a62832b5c5 /ui/gl | |
parent | e55737f17225411e8ce4955f95f32b90f1399e0f (diff) | |
download | chromium_src-e21c547e3d5f9f502836f19c7c69075f70813f27.zip chromium_src-e21c547e3d5f9f502836f19c7c69075f70813f27.tar.gz chromium_src-e21c547e3d5f9f502836f19c7c69075f70813f27.tar.bz2 |
Override Resize() in NativeViewGLSurfaceEGL.
This is really just to allow the compositor to call reshape() on this
type of surface when the view size changes initially (from 0x0 to the
window width and height) without hitting NOTIMPLEMENTED() in GLSurface.
Review URL: https://chromiumcodereview.appspot.com/10836300
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl')
-rw-r--r-- | ui/gl/gl_surface_egl.cc | 4 | ||||
-rw-r--r-- | ui/gl/gl_surface_egl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc index 0e36a6a..0dfa4de 100644 --- a/ui/gl/gl_surface_egl.cc +++ b/ui/gl/gl_surface_egl.cc @@ -338,6 +338,10 @@ gfx::Size NativeViewGLSurfaceEGL::GetSize() { return gfx::Size(width, height); } +bool NativeViewGLSurfaceEGL::Resize(const gfx::Size& size) { + return size == GetSize(); +} + EGLSurface NativeViewGLSurfaceEGL::GetHandle() { return surface_; } diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h index 85ca98c..f45ce3a 100644 --- a/ui/gl/gl_surface_egl.h +++ b/ui/gl/gl_surface_egl.h @@ -66,6 +66,7 @@ class NativeViewGLSurfaceEGL : public GLSurfaceEGL { virtual EGLConfig GetConfig() OVERRIDE; virtual bool Initialize() OVERRIDE; virtual void Destroy() OVERRIDE; + virtual bool Resize(const gfx::Size& size) OVERRIDE; virtual bool IsOffscreen() OVERRIDE; virtual bool SwapBuffers() OVERRIDE; virtual gfx::Size GetSize() OVERRIDE; |