Make AndroidContext::IsValid virtual (flutter/engine#22665)

Fixes https://github.com/flutter/flutter/issues/70938
This commit is contained in:
Jason Simmons 2020-11-21 07:51:39 -08:00 committed by GitHub
parent e76e35f677
commit ec51a006fe
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class AndroidContextGL : public AndroidContext {
/// @return Whether the current context is valid. That is, if the EGL
/// contexts were successfully created.
///
bool IsValid() const;
bool IsValid() const override;
//----------------------------------------------------------------------------
/// @return Whether the current context was successfully clear.

View File

@ -26,7 +26,7 @@ class AndroidContext {
AndroidRenderingAPI RenderingApi() const;
bool IsValid() const;
virtual bool IsValid() const;
private:
const AndroidRenderingAPI rendering_api_;