提交 0d1a0747 编写于 作者: C Chinmay Garde

Merge pull request #679 from chinmaygarde/master

Avoid warnings on iOS due to surface resize events not being handled
......@@ -18,6 +18,7 @@ class GL_EXPORT GLSurfaceIOS : public GLSurface {
void* GetHandle() override;
bool OnMakeCurrent(GLContext* context) override;
unsigned int GetBackingFrameBufferObject() override;
bool Resize(const gfx::Size& size) override;
private:
gfx::AcceleratedWidget widget_;
......
......@@ -224,6 +224,11 @@ unsigned int GLSurfaceIOS::GetBackingFrameBufferObject() {
return framebuffer_;
}
bool GLSurfaceIOS::Resize(const gfx::Size& size) {
// The backing layer has already been updated.
return true;
}
void GLSurfaceIOS::Destroy() {
DCHECK(glGetError() == GL_NO_ERROR);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册