From 26c4ba074d65a970f5acbd6eb1775fb843e1171a Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Sat, 21 Nov 2020 07:51:39 -0800 Subject: [PATCH] Make AndroidContext::IsValid virtual (#22665) Fixes https://github.com/flutter/flutter/issues/70938 --- shell/platform/android/android_context_gl.h | 2 +- shell/platform/android/context/android_context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/platform/android/android_context_gl.h b/shell/platform/android/android_context_gl.h index 20710a8372..73a177dccd 100644 --- a/shell/platform/android/android_context_gl.h +++ b/shell/platform/android/android_context_gl.h @@ -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. diff --git a/shell/platform/android/context/android_context.h b/shell/platform/android/context/android_context.h index 77586e0fbb..3412c0182e 100644 --- a/shell/platform/android/context/android_context.h +++ b/shell/platform/android/context/android_context.h @@ -26,7 +26,7 @@ class AndroidContext { AndroidRenderingAPI RenderingApi() const; - bool IsValid() const; + virtual bool IsValid() const; private: const AndroidRenderingAPI rendering_api_; -- GitLab