未验证 提交 26c4ba07 编写于 作者: J Jason Simmons 提交者: GitHub

Make AndroidContext::IsValid virtual (#22665)

Fixes https://github.com/flutter/flutter/issues/70938
上级 66a6b4a5
......@@ -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.
......
......@@ -26,7 +26,7 @@ class AndroidContext {
AndroidRenderingAPI RenderingApi() const;
bool IsValid() const;
virtual bool IsValid() const;
private:
const AndroidRenderingAPI rendering_api_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册