From f9eadec614c0ae338fd524f1440bf90f3150117f Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 9 Sep 2015 15:25:49 -0700 Subject: [PATCH] Silence benign warnings about surface resizes on Mac --- ui/gl/gl_surface_mac.h | 1 + ui/gl/gl_surface_mac.mm | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ui/gl/gl_surface_mac.h b/ui/gl/gl_surface_mac.h index 6257f909502..59ee9f50515 100644 --- a/ui/gl/gl_surface_mac.h +++ b/ui/gl/gl_surface_mac.h @@ -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: diff --git a/ui/gl/gl_surface_mac.mm b/ui/gl/gl_surface_mac.mm index 83fcb66bb41..ea981b55d20 100644 --- a/ui/gl/gl_surface_mac.mm +++ b/ui/gl/gl_surface_mac.mm @@ -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