Merge pull request #1110 from chinmaygarde/master

Silence benign warnings about surface resizes on Mac
This commit is contained in:
Chinmay Garde 2015-09-09 15:38:22 -07:00
commit 79980b7eed
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class GL_EXPORT GLSurfaceMac : public GLSurface {
bool IsOffscreen() override;
gfx::Size GetSize() override;
void* GetHandle() override;
bool Resize(const gfx::Size& size) override;
bool OnMakeCurrent(GLContext* context) override;
private:

View File

@ -52,6 +52,11 @@ void* GLSurfaceMac::GetHandle() {
return (void*)widget_;
}
bool GLSurfaceMac::Resize(const gfx::Size& size) {
// The backing has already been updated.
return true;
}
bool GLSurface::InitializeOneOffInternal() {
// On EGL, this method is used to perfom one-time initialization tasks like
// initializing the display, setting up config lists, etc. There is no such