diff --git a/engine/src/flutter/shell/platform/android/android_context_gl.h b/engine/src/flutter/shell/platform/android/android_context_gl.h index 20710a83722..73a177dccdc 100644 --- a/engine/src/flutter/shell/platform/android/android_context_gl.h +++ b/engine/src/flutter/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/engine/src/flutter/shell/platform/android/context/android_context.h b/engine/src/flutter/shell/platform/android/context/android_context.h index 77586e0fbb3..3412c0182e3 100644 --- a/engine/src/flutter/shell/platform/android/context/android_context.h +++ b/engine/src/flutter/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_;