Commit e21c547e authored by sievers@chromium.org's avatar sievers@chromium.org

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
parent e55737f1
......@@ -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_;
}
......
......@@ -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;
......
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