mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #1110 from chinmaygarde/master
Silence benign warnings about surface resizes on Mac
This commit is contained in:
commit
79980b7eed
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user